From 55c4ac1bfe565f1ca7f537fdd8b7a201be28e581 Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 10 Nov 2005 12:47:19 +0000 Subject: Initial import of prado framework --- tests/UnitTests/simpletest/test/unit_tests.php | 49 ++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 tests/UnitTests/simpletest/test/unit_tests.php (limited to 'tests/UnitTests/simpletest/test/unit_tests.php') diff --git a/tests/UnitTests/simpletest/test/unit_tests.php b/tests/UnitTests/simpletest/test/unit_tests.php new file mode 100644 index 00000000..ebc38ffe --- /dev/null +++ b/tests/UnitTests/simpletest/test/unit_tests.php @@ -0,0 +1,49 @@ +GroupTest('Unit tests'); + $this->addTestFile('errors_test.php'); + $this->addTestFile('options_test.php'); + $this->addTestFile('dumper_test.php'); + $this->addTestFile('expectation_test.php'); + $this->addTestFile('unit_tester_test.php'); + $this->addTestFile('simple_mock_test.php'); + $this->addTestFile('adapter_test.php'); + $this->addTestFile('socket_test.php'); + $this->addTestFile('encoding_test.php'); + $this->addTestFile('url_test.php'); + $this->addTestFile('http_test.php'); + $this->addTestFile('authentication_test.php'); + $this->addTestFile('user_agent_test.php'); + $this->addTestFile('parser_test.php'); + $this->addTestFile('tag_test.php'); + $this->addTestFile('form_test.php'); + $this->addTestFile('page_test.php'); + $this->addTestFile('frames_test.php'); + $this->addTestFile('browser_test.php'); + $this->addTestFile('web_tester_test.php'); + $this->addTestFile('shell_tester_test.php'); + $this->addTestFile('xml_test.php'); + } + } + + if (TEST == __FILE__) { + $test = &new UnitTests(); + if (SimpleReporter::inCli()) { + exit ($test->run(new TextReporter()) ? 0 : 1); + } + $test->run(new HtmlReporter()); + } +?> \ No newline at end of file -- cgit v1.2.3