SimpleSAML\Test\BuiltInServer::stop PHP Method

stop() public method

Stop the built-in server.
public stop ( )
    public function stop()
    {
        if ($this->pid === 0) {
            return;
        }
        exec('kill ' . $this->pid);
        $this->pid = 0;
    }

Usage Example

 /**
  * The tear down method that is executed after all tests in this class.
  */
 protected function tearDown()
 {
     unlink($this->shared_file);
     $this->server->stop();
 }