[ '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:----Bup9XkfAe3FpsT+gAZ4VEuOTF0UZqwBVtpiuedVmSlJKy3rqphRBJCydHZd5nQIZMti6IF6OOjupz+o9sr68xTCkQub+jEvQPoVOrNh73XGRxRXDi5CLT8RqK2xVmNu/RX0/lPAcy0ENs5oCVV6ogMXLHlBSsCa3yH3Qm1+Co6WqFXTfxB60+adKO2ZDR2swZKp28x9gIJ5r28aGZ5oUtUfkHljQwVeuvv0XqznJkSDy/NtJHX49kiYVTqIgb8IuqmSBifPs12Or8O7lXIijl+StzQPXUgku6or9QL0GutN/Jq3LiKSzM58rZl6/w3cvXQveb+IBBsjJu/Vcc/Rt4sKLmCUjpZ8EZVC8JDHAFyt3GsBohev4zUifYK4yq7mtWQcLCZgnskxSF5r2kw2oK3lNIljgJOd0ayycqceqLSOBQTLQtFa7n7zs9ZpMb/MAJC4yj1dBgFvdMN2ux/GfIEiXjhMCZ5VtA36tHwfbeeE2vICVN+LfQKJLIf/ofJho+/rYF9CjetRPRyy+b20bh+B+ZTccLxaNk7WkldqsJ0l+hHSaDMqqud0h5t7LqP5acoc781uFV4otsAidJsiS3jVIpKq4RSkFpXWn+g5iH4lsEmRoPvmJ4bQNVZQcXN3m8yw9c7/DtRiknMKzcFSQYcosfstFidEhAZ1zZyYP8rI=----ATTACHMENT:----ODc5MjYyMzM1NTk2NTIxNyA5NTI0Mzk0ODA5MzE4MDM0IDkwNjM3MjYxMjY1MTU4OTE=