PHP Class jamband\schemadump\tests\TestCase

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: jamband/yii2-schemadump Class Usage Examples

Protected Methods

Method Description
mockApplication ( array $config = [], string $appClass = '\yii\console\Application' ) Populates Yii::$app with a new application The application will be destroyed on tearDown() automatically.
tearDown ( ) Clean up after test.

Private Methods

Method Description
destroyApplication ( ) Destroys application in Yii::$app by setting it to null.

Method Details

mockApplication() protected method

Populates Yii::$app with a new application The application will be destroyed on tearDown() automatically.
protected mockApplication ( array $config = [], string $appClass = '\yii\console\Application' )
$config array The application configuration, if needed
$appClass string name of the application class to create

tearDown() protected method

By default the application created with [[mockApplication]] will be destroyed.
protected tearDown ( )