<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -108,15 +108,10 @@ class TestRunner {
 	 */
 	protected function runMultipleTests() {
 		$return = Array();
-		//If we don't have a list of tests to run, search the test dir.
-		if (!count($this-&gt;testsToRun)) {
-			$dir = opendir(TEST_DIR);
-			while (false !== ($f = readdir($dir))) {
-				if (!preg_match('/Test.php$/', $f)) continue;
-				$name = preg_replace('/Test.php/', '', $f);
-				$this-&gt;testsToRun[] = $name;
-			}
-		} 
+		//If we don't have a list of tests to run, find all available ones.
+		if (!count($this-&gt;testsToRun)) { 
+			$this-&gt;testsToRun = $this-&gt;findAllTests();
+		}
 		//Run the tests and return the result.
 		foreach ($this-&gt;testsToRun as $test) {
 			$runner = new TestRunner($test);
@@ -126,6 +121,21 @@ class TestRunner {
 	}
 
 	/**
+	 * Searches through the test subdirectory to find all test files.  This
+	 * method can be overridden by a child class to take into account unique
+	 * environment settings.
+	 */
+	protected function findAllTests() {
+		$tests = Array();
+		$dir = opendir(TEST_DIR);
+		while (false !== ($f = readdir($dir))) {
+			if (!preg_match('/Test.php$/', $f)) continue;
+			$name = preg_replace('/Test.php/', '', $f);
+			$tests[] = $name;
+		} return $test;
+	}
+
+	/**
 	 * For testing methods which should throw exceptions.
 	 * Also serves as an example of a custom test handler.
 	 */</diff>
      <filename>TestRunner.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>1d2a6073f52655627e1b5b31c544be927eeac1ad</id>
    </parent>
  </parents>
  <author>
    <name>Yuffster</name>
    <email>msteigerwalt@gmail.com</email>
  </author>
  <url>http://github.com/Yuffster/rabidrunner/commit/217e8ccb7e68a17c5eddbb4712adb78693954cdd</url>
  <id>217e8ccb7e68a17c5eddbb4712adb78693954cdd</id>
  <committed-date>2008-12-10T00:00:26-08:00</committed-date>
  <authored-date>2008-12-10T00:00:26-08:00</authored-date>
  <message>Moved the logic for finding tests to its own method (TestRunner::findAllTests) so that it can be extended.</message>
  <tree>7a7245e5a7b84cbc03021335a09bd18102d43206</tree>
  <committer>
    <name>Yuffster</name>
    <email>msteigerwalt@gmail.com</email>
  </committer>
</commit>
