Add VariableManager, RpcClient classes, and cache enhancements
This commit is contained in:
parent
38092a639e
commit
e55f4d57f9
27 changed files with 606 additions and 56 deletions
|
@ -20,6 +20,8 @@ class CryptographyTest extends TestCase
|
|||
$this->assertObjectHasProperty('privateKey', $keyPair);
|
||||
$this->assertIsString($keyPair->getPublicKey());
|
||||
$this->assertIsString($keyPair->getPrivateKey());
|
||||
|
||||
print_r($keyPair);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
21
tests/Socialbox/Classes/ServerResolverTest.php
Normal file
21
tests/Socialbox/Classes/ServerResolverTest.php
Normal file
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
|
||||
namespace Socialbox\Classes;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Socialbox\Exceptions\ResolutionException;
|
||||
use Socialbox\Objects\ResolvedServer;
|
||||
|
||||
class ServerResolverTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* Test for the function resolveDomain of the class ServerResolver
|
||||
*/
|
||||
public function testResolveDomain(): void
|
||||
{
|
||||
// successful resolution
|
||||
$resolvedServer = ServerResolver::resolveDomain('n64.cc');
|
||||
self::assertNotEmpty($resolvedServer->getEndpoint());
|
||||
self::assertNotEmpty($resolvedServer->getPublicKey());
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue