Class TestCase
Abstract test case that makes for easy functional testing of your application
at the controller level.
-
PHPUnit_Framework_TestCase
-
Autarky\Testing\TestCase
Methods summary
public
|
|
protected
|
#
enableExceptionHandling( )
Enable exception handling in the application being tested.
Enable exception handling in the application being tested.
By default, uncaught exceptions in the application will simply be thrown
again, meaning you have to call setExpectedException or similar if an
exception is expected behaviour. If instead you want the application
error handler to do its job and return a response, call this method.
|
public
|
|
abstract protected
Autarky\Application
|
#
createApplication( )
Create and return the application instance.
Create and return the application instance.
Usually this will simply be a require of your app/start.php file. Make
sure that this file does return $app; at the end.
Returns
|