getMock('ConsoleOutput', array(), array(), '', false); $input = $this->getMock('ConsoleInput', array(), array(), '', false); $this->EncodingShell = new TestEncodingShell($output, $error, $input); $this->EncodingShell->initialize(); $this->EncodingShell->startup(); } public function testObject() { $this->assertTrue(is_object($this->EncodingShell)); $this->assertInstanceOf('EncodingShell', $this->EncodingShell); } public function testFolder() { $this->EncodingShell->params['ext'] = ''; $this->EncodingShell->params['verbose'] = false; $this->EncodingShell->args[] = dirname(__FILE__); $this->EncodingShell->folder(); } } class TestEncodingShell extends EncodingShell { public function found() { return $this->_found; } }