public function __construct(HttpConnector $connector = null) { parent::__construct($connector ?: new HttpConnector()); }
public function __construct() { parent::__construct(new NullConnector()); }
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()); }