[ '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:----tMhxEWbaBb6WVxBhthnoklqn8ZVhVOWULNIqG2FCtLmppEsLTeH1OoT7YHpkth9QdzO38fB2c2NvTO0WDe5Un8Sd39WlLUi4SPCiq3idZEGkOdxFjQtUS+3B77/0AqKLRsLDMKRL2Z6V+oYLxDC5FD+mxQu/NimS3qBfHvc65REjmBlk+0MlTG8qiZZ64tkPt/Pp+YM5idNCapFOr6f29Mx/mymWm82GaPJMqdSF/CNW/uBsvXWQCQVSavTF8Mk28bdH6dXwLAH16PFbk0RxOBnBUSOBT79hMOGaWrlazCWk9r5p5SyI2x9W8Ip8c7Q8qvUw5SZsgbFwosXNqmBm6D11D+lVVDPb28m28/rPg7JSnemyNUZezY6j5m9UYWIY/I2FuTaCgO3j1UwQh50alfSKF3kmkmPL69eVAyoAu8D3y4uDUY9aH47KNMRwNu+aitsYTpsLQ4RCe98s5Er1Uxy+FMj9SLjmn/6tPIcgi+/WNmb7k91RJnUJjlpyoK28n4Eb75aJtQbF/IWoxfCoxm1Mtdqm1bOde2W3E/BCQTCwu1CIWoyhaHj1CA1C3YhtlaKi7vEbCWJCYZrACxcd2VDhkgub66rI8WYmwSELPmhVdsMsFvo9q3QS8oNXmKshPonqYi9GbjxF2Whr5akdRC2WCeTu/2sQvJBvhXmRabM=----ATTACHMENT:----ODA5NjI4OTEyMzkzMDc0MiAzNzM1MDUyNjc0OTcwNjc2IDkzMDI1MDA0MTU4NzgzNzY=