Inheritance: implements Connector, implements ScriptFUSION\Porter\Cache\CacheToggle
コード例 #1
0
 public function testEnableCache()
 {
     self::assertTrue($this->connector->isCacheEnabled());
     $this->connector->disableCache();
     self::assertFalse($this->connector->isCacheEnabled());
     $this->connector->enableCache();
     self::assertTrue($this->connector->isCacheEnabled());
 }
コード例 #2
0
ファイル: SoapConnector.php プロジェクト: ScriptFUSION/Porter
 public function __construct($wsdl = null, SoapOptions $options = null)
 {
     parent::__construct();
     $this->wsdl = $wsdl;
     $this->options = $options;
 }
コード例 #3
0
ファイル: HttpConnector.php プロジェクト: ScriptFUSION/Porter
 public function __construct(HttpOptions $options = null)
 {
     parent::__construct();
     $this->options = $options ?: new HttpOptions();
 }