Skip to content
Browse files

update README.md w/ report viewing in browser

  • Loading branch information...
1 parent 5a15307 commit 59dc7ad76870438dd17dcf7e659486163d8d89ee @funkatron committed Mar 8, 2014
Showing with 14 additions and 2 deletions.
  1. +14 −2 README.md
View
16 README.md
@@ -29,7 +29,7 @@ exit($exit_code);
Will output:
- > php example.php
+ > php example_standalone.php
Running test 'this is a test...'
RESULTS:
--------------------------------------------
@@ -41,8 +41,13 @@ Will output:
TOTAL ASSERTIONS: 1 pass, 1 fail, 0 expected fail, 2 total
TESTS: 1 run, 0 pass, 1 total
-See the `example.php` file for more, or try running it with `php example.php`
+See the `example_standalone.php` file for more, or try running it with `php example_standalone.php`
+Alternately, if you load `standalone_example.php` in a web browser, it will output a very simple HTML version of the text report. If you're running PHP 5.4 or above, you can use the dev server to view it like so:
+
+`php -S 0.0.0.0:8000 example_standalone.php`
+
+And then open <http://0.0.0.0:8000> in a web browser.
## Methods
@@ -147,6 +152,13 @@ FUnit::run(true, null, 'text');
FUnit::run(true, null, 'xunit');
```
+### Browser output
+
+The standard `text` report format will output as very simple HTML if the test file is loaded up through a web server. You can test this with the dev server if you're running PHP 5.4+:
+
+`php -S 0.0.0.0:8000 test_file.php`
+
+And then open <http://0.0.0.0:8000> in a web browser.
## CLI Test Runner Utility

0 comments on commit 59dc7ad

Please sign in to comment.
Something went wrong with that request. Please try again.