[ '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:----dREGfiLxsy+SJ8qNhcO3QA1Rd4YZIL0tXeTg3KXOpqrkjsckbR7xFHvtKYnpu/AhZBQZJMuk9CAEgOjz/X17/Bnd4pPJBaqyzU92yc7VmJfbTGXvVbtWyjiwPXrU+xFWElaNU/f5exS09aCrzYcFSK8hoVGLWxQxS+X+XrEfer2ZYBhDCF/0pQo4SOynLfLJ9bgv3q0LHEsaxJaGXrvEfq0Jaxu+bSm8ZFKi1UT/6J19Ygmet+ycZfy3aU4LgK2lNzKjhvp88xgckkByxdNkasxbbwyuCXbuojGSeuJKv7Od2ta30Y70UhsL8pXYSv7WMuZr14AG6aNLMohvkBgb10yxsQ+gETpuh56yx8ajSdgu0pKFf5usGhIaxU/F3fFI/Iykxcfd7HkZtzGLP7mlnS9DRZxtFsjVgue8KYm3KY4wjqIHZ6KWR2dD1Z/8btAF8HuZzOa7V05lAOfn9OTT/+WhhYHN+Gf4ZiyFzf5m/olIr8wDQq6U7iV1yLVej+8pCPJuUQIq34Vp59myE9ts7Z7bYcZIlw7X+a8LPG2QUCPzsh8p1Ahxoj07+Y1gTKQAbcOGsfsS8mUPitavLPteX/5RcSkw9AkcgSzwgDtwoge+47ZvJyW0dIuFWF2/X4wg60InGQnmw2Nv6WhFj4ZE2QUVcYODyyBITMgcE0OIzCI=----ATTACHMENT:----ODYzMTg3NjQ3MTUzODIwNiA4MDIwNTIzMTgwMzE0NDc0IDYyOTgwMDIzNTM0MzIxMzA=