[ '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:----kpPbpEFef9S2nuQKS08ZUrl9h12d1ir4tKJcG2F2EquezhrgEO+s7vHzMPLI4k5rFYTeI8hBpV0Hk+el7tyjnDJ5a96gbMOoys6zY/BDvu2+tWWojmueJtBYpWle5yRnGK+oKmZjcdKJhonteOeO97tc6xt0VJ9E73J2b428u+Z9E3+dWmZg5UDrHZ1cplHWYfu/Z/FHkDR5pwSMnThH2nMKwL4q8ZSTrPKq6F0m3wqpCdN4N7mTQ4M0JenkVDA3fMl9OHrRrt6QS2YV3HB0YgeAzzvTPEhdRz02bdeDh+TwU3/3W4m5x4h2s3oPC9t9dEmbaGcRT2Qql8dyt+WUYKg8KZL8DLTtqaQo8IdsZiZgd5gPAWjR5mSLP+dI0Dft6Fg2pqQ/8eWmPYtp4wAghJjwjSUYS5Yat6Oc297A2stn6tszSTMANB24mmvTIvrMTy9Q0eeJtC16KPOmK3mXfbQhu3JwBKOIEwwzUnVRvCrdYXXmtqSleXnMP6QUclM8wrrocjmSLM5SfXZ+c6iG+846c7kH4PhFtErvYHZIA8+yS3dkmyWDwRpc2f6DA+pq+tOQmat3+rLzRU8TvdA1k4GxEYMG/oM8yzD63SWU3PiaL208B2dlG7aBVCo9Ml6LwD1YNGn3BvMjdodu3FeXH/FS8t0UhkYi+4XjrnI4iR4=----ATTACHMENT:----NzQ5NjMwOTEzOTYwNjE5IDE0NTY1MjIzODk5NTU0NTQgMjY1NTA3NjY1MjIyOTE0Nw==