[ '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:----v17Kp4/CXhN3xofSwDcBuQ2Sj6+px9Pn9r1pXoW7BKT7AfSTPj5UZR0uPznCSLki6nEyn9Q4Ne8clNJhAnId5qLM6CGzlQUGFmDt467Xcewqk4HCYNGSy3AotoS2IBPa+S6eKPVoyGQCQhC/N9PkkSisoHQFBOZs7zjMAadyabdAzEHIgckOWi3kMZgrql4bwD9SD5D2VArbIHCW/T8PoCPc/M9za061ja/a3gpIxXeG+1zj42R3gTKHTFH+Y9e7flzH5Gw5PO4wfFsCkNiPZBU1vBSouUcaQu1OCiEjOfjJXbegPYF9iQ1aDO4p7GEM5qStaIhfrJT6tQqFXR02EhmeAptdz78UbAZBKYn8ONDBSSyEvOp5tfggZlvetAK7j+89yIKa4pMxf1aUGT0PQ3jfIWwAKjiKvk8BzLA9KncaHaBU2MxUwX/ERrF7HO814Pu8U3B22gBs6nkG/4iwoAlhx12mqBjtoapGPMuD2qlmSbdEffjQXL7DyAsU1oeFdPHX9q3exGWmfap+l+krLo2ENjj37KQJRJie72Tq0WJwiQrGQsyuqGLPQPtlolhpwHatR22Cpl87uEZN3EzOWT+wtPUprxB77X4fltTyCQSJElBo74MSe52Rh7XRIoMw08OViAIgoxSPNMCTKaqf0rXJUlq5kikUs9Q9s+njLLo=----ATTACHMENT:----OTA0ODEyNDM4MjQ2NTIzMCA1NzgwOTMzNzMxMDExMjA4IDE3NDk1ODQ0NzQzNzQ3OTg=