PHP Class Autarky\Testing\TestCase

Inheritance: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Afficher le fichier Open project: autarky/framework Class Usage Examples

Protected Properties

Свойство Type Description
$app Autarky\Application The application instance.

Méthodes publiques

Méthode Description
setUp ( )
tearDown ( )

Méthodes protégées

Méthode Description
createApplication ( ) : Application Create and return the application instance.
enableExceptionHandling ( ) : void Enable exception handling in the application being tested.

Method Details

createApplication() abstract protected méthode

Usually this will simply be a require of your app/start.php file. Make sure that this file does return $app; at the end.
abstract protected createApplication ( ) : Application
Résultat Autarky\Application

enableExceptionHandling() protected méthode

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.
protected enableExceptionHandling ( ) : void
Résultat void

setUp() public méthode

public setUp ( )

tearDown() public méthode

public tearDown ( )

Property Details

$app protected_oe property

The application instance.
protected Application,Autarky $app
Résultat Autarky\Application