[ '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:----Bujg1XAaLhf+hhQHgxKNY6PehM0hEgfp/nBvsOuRQugM0SpC35MBzGKWXkrFskZQNGYDLpdQnEh00MBVVeJ6dqOhUUR6w3HhFgml6jNMFQsctyrsLAlO3pUAcrrl14+iwkSqvLompNw/gMvcHG41BLJ1T+1tEARhVx3UBLPQdLUkGPGcIFG8oInGNRArQsN6TM7Ozn2UXmBZzFrF3H/PFdXBUVWInThIMLvfCBLDpH3dBpe6JJ3YAgfKPUxfzwHNrnZHmPJVhbmc8oqDRipLlPFtmlz+IekuaRzsAU4L1rbvG9tgd3vwgoWRyqXOQH4M09HsgtpMxL8ez4TQefRXAG8/WZS5msYsvTz0U4H3EYpWgOVvgBgm0mgJywhaNyPW1hP/KYQjBOgwC1MHM9EvBHgoDmMQM5J7Vhu2dWBU+myQkDFZUyFUHv1hUbgR8D6R6jj5TeFg7SfAcZbaX/dc18WRjQAebUAnMDFMP7oyRwxO/I6wmvuTBohNZhE1GY7zYJwQUQVNLzfI3ZCngFGt5ajwnhtG5zMye7PfAn4hZyK5TOa6/FENI6ifcvbZieooW4sarp8HuzLkRHhky8SmclCIebvEsxnt5j9AAux9Yv2QK3iaaVhBB1hpn7fLph+I7tBfiVOyxk+Khva1Hlc9V+7/JhsuvuKYn7zUtn0rAkU=----ATTACHMENT:----ODkxNzI0ODMyMDg3NjgwMSA1MDIyNjUwNjIxNzU0NjE2IDIxNTI5MjQzNDc5OTEyODA=