@@ -27,7 +27,7 @@ |
# All methods within the test class beginning with the letters "test" will be executed by PHPUnit |
|
So, for our class, this is what the test class would look like: |
-{CODE(colors=>php)}<?php |
+{CODE source=php}<?php |
// get the class you're going to test |
require_once('MyClass.php'); |
// always extend the Test class, which is already included from index.php |
|
|
@@ -50,7 +50,7 @@ |
Assert::equalsTrue($this->test->getText() == "some text", 'Value is not set'); |
} |
} |
-?>{CODE} |
+?>{/CODE} |
As you can see, its really not too hard. By browsing to the __index.php__ file, each of the Test* files and classes will be initialised and their results presented on the screen. |
|
The next steps to this test class could be: |
|
|
@@ -60,7 +60,7 @@ |
!The ))PrePostFilter(( tester |
A new class was added to the testing framework in |
order to test smarty filters. The class can actually test all filters that has the signature |
-{CODE(colors=>php)}$output = filtername ($input){CODE} |
+{CODE source=php}$output = filtername ($input){/CODE} |
The class could be modified with more |
to handle other kind of input-output test, but |
currently only pre- and postfilters are |
|
|