[ '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:----Apj3Go2y+Hf4G3z/yIBuyuBQcQK0NbqBs/vmC3fWJr0iFJL7kUgLjF5rN4xwQ2AzDDMYPEuwF6WnxZ+xd7mqJWqLfjYtGMr+D8xo01hUiprc+aCKbwhOJN6ved4dMLQssDs+qXWDReqLbiF+NkqgFS+As8z8HcHDZsa0p67NQX74Ef01FKfAAf1KKp/RvqQZ7J1OXJ1cLIge77oSSVU0sfQJo73yBbzq3P61gS80Okv4ByqllG+/B9JBH4po6ZXI9BHpLhAtC+lYHdAYO/xTPB+R+h+5YxbcxHaxy0Z1lEro+RBE+JCJu1Rptpn/nk2DCDVgzizkFjLNFPO7R6975xD1ref3vxyufwo2W71vQWHtYvxT9+o8zezmttPquA1IOJlNPpylFb7rfoVf2F9FDUNniyhI9dxzQifKyJAizF7p/oFiG9up1IXSKT3ig/nSB+2X+zCZmu0MME6YGPLoWk6wNYDzxd8QbB9DA1u7ldUVHN9E455X+3n4cv9FiZ002uxTpAHSgdZR0j2YzJzhzzyuJ7oq2JeIw/DvVmoMBRs2QUiKzFKvQwq9EvBiWPwbrdYMSqsXxBjDXO5RvbzttXIBWgG+n30QxdShahWonzAecA8XfXETiAz7Rox1ICK2KI7duBebpNuoQfQIPPGe72WKR1L8iwFAyQq4LOwrcxM=----ATTACHMENT:----ODY1MzIxNDM2MTUzMzUyNyAzNDgxMzkwNDc2MjI5NzI1IDkwOTEzNjc0MjYzMzIzMzU=