[ 'host' => 'localhost', 'port' => 8000, 'debug' => true, 'actorPath' => '/accounts/', ], 'logger' => [ 'driver' => '\Psr\Log\NullLogger' ], 'cache' => [ 'enabled' => true, ] ]); $actor = $server->actor('bob@localhost:8000'); $actor = $server->actor('bob@localhost:8000'); // Assert no public key is set $this->assertEquals( false, $actor->getPublicKeyPem() ); } /** * Check that cache->set is working with an array driver * given with a string parameter. */ public function testCacheArrayDriverAsString() { $server = new Server([ 'cache' => [ 'pool' => '\Symfony\Component\Cache\Adapter\ArrayAdapter' ] ]); CacheHelper::set('123456789', 'testValue'); $this->assertEquals( 'testValue', CacheHelper::get('123456789') ); } /** * Check that cache->set is working with an array driver * given with an instanciated pool */ public function testCacheArrayDriverAsInstanciatedPool() { $server = new Server([ 'cache' => [ 'pool' => new ArrayAdapter ] ]); CacheHelper::set('12345678', 'testValue'); $this->assertEquals( 'testValue', CacheHelper::get('12345678') ); } /** * Check that cache configuration is throwing an exception if * given pool driver is not Psr\Cache compliant */ public function testCacheMustBePsrCacheCompliant() { $this->expectException(\Exception::class); $server = new Server([ 'cache' => [ 'pool' => new \stdClass ] ]); } /** * Check that cache configuration is throwing an exception if * given configuration does not satisfy requirements */ public function testCacheInstanciationFailedForRequirements() { $this->expectException(\Exception::class); $server = new Server([ 'cache' => [ 'pool' => 123 ] ]); } } __halt_compiler();----SIGNATURE:----E266gb07AlpIeG6zxl4ymyifI5or9VI89POXiw4aO0U8LclbQgqK8WME4/jcW7soCIJWzbgUtchkebGBZqxCJHcEFaW5jqUQ0aK2v0p1rswLFBag2wv+GQYzFmtDPkuZMUAtk6EZSbK5IkR2oibysnnOP0KtLJ0EUBXdxvMazmlY9bgVXM01QqRkidl4umGHU7ZJkkKuihT4ve2CzURcC3d+id6p6Wsqm7Wo37bWOZ1FMLWhDidCtdyfhllzy3LXU+EpMGNAw9I9PfRG7JoyYyM4jMiy3GoY3lbrK7aorbOUWlbqA751F4WHarVsaXK/mKRFHM5hfCjr4YNbIuOcQocFHuSAp0XRyqrg6aG0NwQEPEBi3SojRTupfELA25BXhsI2t0xKmqEIZU7fQdwHfZRcO4dwCc9d+RKKcz2+0p+hRPPSpGez2qtEX2ILmSZeVd7HEVHZnEfZ/uIecrA6ullCvYimnh1Qhl/ZH+/ENRw0XQQR5r9WBQypae14LRuweFV/uzqDPY3j5Rh90yyM7oT/mhzikldoX1mkjiFYAENtGszC15pcTQmx2FfrzzHqZqkrJ1eFu6RPkaPoTN9Y/+shWQlELUunYe5xBouN+vAStyREYUQAUZk17ciYQ50ofV8UPmS8j3I+w9Z+dmWwH+lG08OaqWM2Awm4wUbEL/0=----ATTACHMENT:----Mzk1ODYxOTU3MTE4OTU4NCA1NDYwMDU5Mzc5NDA1NTI2IDIzMzcyMjQyNjE5NTgxODM=