/** * @depends test_doRun * @covers ::__destruct * @covers ::close */ public function test_destruct() { $this->assertTrue($this->Command->open($this->Input), 'ShellCommand::open() should return TRUE'); $this->Command->__destruct(); sleep(5); $Status = @proc_get_status($this->readAttribute($this->Command, '_fp')); if ($Status) { $this->assertFalse($Status['running'], 'ShellCommand::$_fp should not be a resource'); } }