Esempio n. 1
0
 public function test_tests()
 {
     $tests = Functest_Tests::tests();
     $expected = array($this->modpath . 'tests/testmodule/tests/tests/DummyTest.php', $this->modpath . 'tests/tests/FixtureTest.php', $this->modpath . 'tests/tests/TestsTest.php');
     $this->assertEquals($expected, $tests);
 }
Esempio n. 2
0
 public static function suite()
 {
     if (!Functest_Tests::$_suite) {
         Functest_Tests::$_suite = new PHPUnit_Framework_TestSuite();
         Functest_Tests::$_suite->addTestFiles(Functest_Tests::tests());
     }
     return Functest_Tests::$_suite;
 }