Inheritance: implements ScriptFUSION\Porter\Provider\Provider, implements ScriptFUSION\Porter\Cache\CacheToggle
 public function __construct(HttpConnector $connector = null)
 {
     parent::__construct($connector ?: new HttpConnector());
 }
 public function __construct()
 {
     parent::__construct(new NullConnector());
 }
Example #3
0
 public function __construct(Connector $connector = null)
 {
     // The default HttpConnector should suffice.
     parent::__construct($connector ?: new HttpConnector());
 }
 public function testCacheEnabledMirrorsCachingConnector()
 {
     $this->setupCachingConnector()->shouldReceive('isCacheEnabled')->andReturn(true, false);
     self::assertTrue($this->provider->isCacheEnabled());
     self::assertFalse($this->provider->isCacheEnabled());
 }