stopped = 'Stopped with status: ' . $status; } } class MockExtractTast extends ExtractTask { function searchDirectory($path = null) { return parent::__searchDirectory($path); } } class ExtractTaskTest extends CakeTestCase { function setUp() { $this->dispatcher = new TestExtractShellDispatcher(); $this->task = new MockExtractTast($this->dispatcher); mkdir(TMP . '/extract_test'); } function testDirectorySearching() { $this->assertIdentical($this->task->searchDirectory(TMP . '/extract_test'), array()); } function tearDown() { unset($this->task, $this->dispatcher); rmdir(TMP . '/extract_test'); } } ?>