Test case for testing of command line scripts and utilities. Usually scripts that are external to the PHP code, but support it in some way.
Located in /shell_tester.php (line 71)
SimpleTestCase | --ShellTestCase
Inherited from SimpleTestCase
SimpleTestCase::$_label
SimpleTestCase::$_observers
SimpleTestCase::$_reporter
SimpleTestCase::$_should_skip
Creates an empty test case. Should be subclassed with test methods for a functional test case.
Will trigger a pass if the two parameters have the same value only. Otherwise a fail. This is for testing hand extracted text, etc.
Tests the last status code from the shell.
Will be true on false and vice versa. False is the PHP definition of false, so that null, empty strings, zero and an empty array all count as false.
File existence check.
File non-existence check.
Scans a file for a Perl regex. If found anywhere it passes, else it fails.
If a Perl regex is found anywhere in the named file then a failure is generated, else a pass.
If a Perl regex is found anywhere in the current output then a failure is generated, else a pass.
Will trigger a pass if the two parameters have a different value. Otherwise a fail. This is for testing hand extracted text, etc.
Attempt to exactly match the combined STDERR and STDOUT output.
Scans the output for a Perl regex. If found anywhere it passes, else it fails.
Called from within the test methods to register passes and failures.
Executes a command and buffers the results.
Accessor for current shell. Used for testing the the tester itself.
Inherited From SimpleTestCase
SimpleTestCase::SimpleTestCase()
SimpleTestCase::after()
SimpleTestCase::assert()
SimpleTestCase::assertExpectation()
SimpleTestCase::before()
SimpleTestCase::createInvoker()
SimpleTestCase::dump()
SimpleTestCase::error()
SimpleTestCase::exception()
SimpleTestCase::fail()
SimpleTestCase::getAssertionLine()
SimpleTestCase::getLabel()
SimpleTestCase::getSize()
SimpleTestCase::getTests()
SimpleTestCase::pass()
SimpleTestCase::run()
SimpleTestCase::sendMessage()
SimpleTestCase::setUp()
SimpleTestCase::signal()
SimpleTestCase::skip()
SimpleTestCase::skipIf()
SimpleTestCase::skipUnless()
SimpleTestCase::tearDown()
SimpleTestCase::tell()
SimpleTestCase::_isTest()
Documentation generated on Sun, 04 May 2008 09:22:08 -0500 by phpDocumentor 1.3.0