public function stop() { if ($this->pid === 0) { return; } exec('kill ' . $this->pid); $this->pid = 0; }
/** * The tear down method that is executed after all tests in this class. */ protected function tearDown() { unlink($this->shared_file); $this->server->stop(); }