[ '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:----ZawmC7hqOY3O3vEs1Td9VtbXLGZFsa5QHCT0yypY5jwFlvxGXryZ6j7cZJf95TE7q8xK5n5qut/cvVFdZ2l0qCNbJrSi80+OM5ja2lkAuOgtAbpRXURZTg6bQ/SpUP0hUmGiq/w/JpsAFhWTrV53ft3cA2MEDvpAJF4mJFFsYJm1KQcb/WNfbUIJ6Kxbp8o0alpj74Na0uzTHk7k6k83uKO6eT77WQbExVB5qf5mvQUHh0dcOmXKlPVLRoYJghrKkSZRuX0dfTZ9RI/bGFSH+gRj9rOtUSgKN9R7u03clNe6bqM3Mn9IXGP4PHVJRGPIJxTOpkXFPBFjzW0cTugMwRgEOkR64FjXj0d4GNNOEbjonDuIgn3QoH6fh6vK4s8z+Z0ZDgZI2BxqgzEg2XuLMqgBKF77bvOx+QkKmbcxYNA5cM/koKF3KBIg0t9o9lpvw8r5Mzz3q59p8dBb84g20YXf5Mh2mkUpqXAJ5DJAXw1P+eW7wtDGFbAJqwFs7qij8ithYmnAU+gsVP5tzER0ZOXRsB7BEs4hFhyvtqgHc7jQHAkwi3CvUc78sLiaFjuYPvoEjw5MAgrdG2L/ZcG/Nf4nRGP1lRgcLJ9eUgSiLFTlkJv0wJw+aSdlysAcoOmO3xU3x2ceBGRwpIScoVfjPev3g6DtOey1/8Vdd8yVn5w=----ATTACHMENT:----NTUyMzQ5ODM4NTc0MDc3NyAyMTA0NzQ0OTI3NDYxNjk1IDY3ODAxODk5NzQ0MDA4Mg==