Located in /Argv/test/Horde/Argv/TestBase.php (line 11)
PHPUnit_Framework_TestCase | --Horde_Argv_TestBase
Assert the parser prints the expected output on stdout.
Assert the parser fails with the expected message. Caller must ensure that $this->parser is an InterceptingParser.
Assert the options are what we expected when parsing arguments.
Otherwise, fail with a nicely formatted message.
Keyword arguments: args -- A list of arguments to parse with Horde_Argv_Parser. expected_opts -- The options expected. expected_positional_args -- The positional arguments expected.
Returns the options and positional args for further testing.
Assert that the expected exception is raised when calling a function, and that the right error message is included with that exception.
Arguments: func -- the function to call args -- positional arguments to `func` expected_exception -- exception that should be raised expected_message -- expected exception message (or pattern if a compiled regex object)
Returns the exception raised for further testing.
Assert that TypeError is raised when executing func.
Documentation generated on Sun, 30 Jan 2011 05:22:49 +0000 by phpDocumentor 1.4.3