Initial Commit
This commit is contained in:
parent
93a0b9be02
commit
6e599b2c0c
99 changed files with 10836 additions and 4 deletions
18
tests/client_manager/create_secured_client.php
Normal file
18
tests/client_manager/create_secured_client.php
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
require 'ncc';
|
||||
|
||||
import('net.nosial.federationlib');
|
||||
$federationlib = new \FederationLib\FederationLib();
|
||||
|
||||
// loop 50 times to create 50 clients
|
||||
for($i = 0; $i < 50; $i++)
|
||||
{
|
||||
$client = new \FederationLib\Objects\Client();
|
||||
$client->setDescription('This is a test client generated by a test script.');
|
||||
$client->enableAuthentication();
|
||||
|
||||
$uuid = $federationlib->getClientManager()->registerClient($client);
|
||||
|
||||
print(sprintf('Client UUID: %s', $uuid) . PHP_EOL);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue