From 9acff836234bd69a2ee855f0d0d4fc93df0d40ab Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 23 Apr 2006 23:34:18 +0000 Subject: [PATCH] Adding PHPUnit tests --- docs/phpunit/AllTests.php | 18 ++++++++++++++++++ docs/phpunit/ApplicationController.php | 20 ++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 docs/phpunit/AllTests.php create mode 100644 docs/phpunit/ApplicationController.php diff --git a/docs/phpunit/AllTests.php b/docs/phpunit/AllTests.php new file mode 100644 index 0000000..54b0bae --- /dev/null +++ b/docs/phpunit/AllTests.php @@ -0,0 +1,18 @@ +addTestFile('ApplicationController.php'); + +// run all the tests +PHPUnit2_TextUI_TestRunner::run($suite); + +?> \ No newline at end of file diff --git a/docs/phpunit/ApplicationController.php b/docs/phpunit/ApplicationController.php new file mode 100644 index 0000000..902a52f --- /dev/null +++ b/docs/phpunit/ApplicationController.php @@ -0,0 +1,20 @@ +fixture = array(); + } + + public function testNewArrayIsEmpty() + { + throw new PHPUnit2_Framework_IncompleteTestError; + } +} + +?> \ No newline at end of file -- 2.43.5