Index: Tests/BackEnd/ModuleTest.php
===================================================================
--- Tests/BackEnd/ModuleTest.php	(revision 48276)
+++ Tests/BackEnd/ModuleTest.php	(working copy)
@@ -117,6 +117,9 @@
 				'  public function runTests_renderIntro_renderExtensionSelector(array $extensionsWithTestSuites) {' .
 				'    return parent::runTests_renderIntro_renderExtensionSelector($extensionsWithTestSuites);' .
 				'  }' .
+				'  public function findTestCasesInDir($directory) {' .
+				'    return parent::findTestCasesInDir($directory);' .
+				'  }' .
 				'  public function loadRequiredTestClasses(array $paths) {' .
 				'    parent::loadRequiredTestClasses($paths);' .
 				'  }' .
@@ -129,6 +132,9 @@
 				'  public function output($output) {' .
 				'    parent::output($output);' .
 				'  }' .
+				'  public function isAcceptedTestSuitClass($class) {' .
+				'    return parent::isAcceptedTestSuitClass($class);' .
+				'  }' .
 				'}'
 			);
 		}
@@ -479,6 +485,67 @@
 	/**
 	 * @test
 	 */
+	public function findTestCasesInDirReturnsEmptyArrayIfDirectoryDoesNotExist() {
+		vfsStreamWrapper::register();
+		vfsStreamWrapper::setRoot(new vfsStreamDirectory('Foo'));
+		$notExistingDirectory = 'vfs://Foo/bar';
+		$this->assertSame(array(), $this->fixture->findTestCasesInDir($notExistingDirectory));
+	}
+
+	/**
+	 * @test
+	 */
+	public function findTestCasesInDirCallsFindTestCasesInDirectoryOfTestFinderObject() {
+		vfsStreamWrapper::register();
+		vfsStreamWrapper::setRoot(new vfsStreamDirectory('Foo'));
+		$directory = 'vfs://Foo/';
+
+		$testFinderMock = $this->getMock(
+			'Tx_Phpunit_Service_TestFinder',
+			array('findTestCasesInDirectory')
+		);
+		$testFinderMock->expects($this->once())->method('findTestCasesInDirectory')
+			->with($directory);
+
+		$fixture = $this->getMock(
+			$this->createAccessibleProxy(),
+			array('getTestFinder')
+		);
+		$fixture->expects($this->once())->method('getTestFinder')
+			->will($this->returnValue($testFinderMock));
+
+		$fixture->findTestCasesInDir($directory);
+	}
+
+	/**
+	 * @test
+	 */
+	public function findTestCasesInDirReturnsArrayWithFoundTestCaseFiles() {
+		vfsStreamWrapper::register();
+		vfsStreamWrapper::setRoot(new vfsStreamDirectory('Foo'));
+		$directory = 'vfs://Foo/';
+		$testFiles = array('class.test1Test.php', 'class.test2Test.php');
+
+		$testFinderMock = $this->getMock(
+			'Tx_Phpunit_Service_TestFinder',
+			array('findTestCasesInDirectory')
+		);
+		$testFinderMock->expects($this->once())->method('findTestCasesInDirectory')
+			->will($this->returnValue($testFiles));
+
+		$fixture = $this->getMock(
+			$this->createAccessibleProxy(),
+			array('getTestFinder')
+		);
+		$fixture->expects($this->once())->method('getTestFinder')
+			->will($this->returnValue($testFinderMock));
+
+		$this->assertSame(array($directory => $testFiles), $fixture->findTestCasesInDir($directory));
+	}
+
+	/**
+	 * @test
+	 */
 	public function loadRequiredTestClassesLoadsFileInFirstPath() {
 		$this->fixture->loadRequiredTestClasses(
 			array(
@@ -648,5 +715,19 @@
 
 		ob_end_clean();
 	}
+
+	/**
+	 * @test
+	 */
+	public function isAcceptedTestSuitClassReturnsTrueForAcceptedClass() {
+		$this->assertTrue($this->fixture->isAcceptedTestSuitClass('foo'));
+	}
+
+	/**
+	 * @test
+	 */
+	public function isAcceptedTestSuitClassReturnsFalseForNotAcceptedClass() {
+		$this->assertFalse($this->fixture->isAcceptedTestSuitClass('Tx_Phpunit_TestCase'));
+	}
 }
 ?>
\ No newline at end of file
