EmbeddedServer::isAvailable PHP Method

isAvailable() public method

Check whether an embedded server is installed and we can manipulate it through PHP.
public isAvailable ( ) : boolean
return boolean
    function isAvailable()
    {
        return $this->isInstalled() && $this->_canExecScripts();
    }

Usage Example

コード例 #1
0
ファイル: EmbeddedServerTest.php プロジェクト: mariojp/ojs
 /**
  * @covers EmbeddedServer::isAvailable()
  * @covers EmbeddedServer::isInstalled()
  * @covers EmbeddedServer::_canExecScripts()
  */
 public function testAvailability()
 {
     $this->markTestSkipped('Needs fixing');
     // On the test instance the embedded server should
     // be available.
     self::assertTrue($this->embeddedServer->isAvailable());
 }
All Usage Examples Of EmbeddedServer::isAvailable