PHP Класс Autarky\Testing\TestCase

Наследование: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$app Autarky\Application The application instance.

Открытые методы

Метод Описание
setUp ( )
tearDown ( )

Защищенные методы

Метод Описание
createApplication ( ) : Application Create and return the application instance.
enableExceptionHandling ( ) : void Enable exception handling in the application being tested.

Описание методов

createApplication() абстрактный защищенный Метод

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
Результат Autarky\Application

enableExceptionHandling() защищенный Метод

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
Результат void

setUp() публичный Метод

public setUp ( )

tearDown() публичный Метод

public tearDown ( )

Описание свойств

$app защищенное свойство

The application instance.
protected Application,Autarky $app
Результат Autarky\Application