Property | Type | Description | |
---|---|---|---|
$params |
Method | Description | |
---|---|---|
assertEqualsWithoutLE ( string $expected, string $actual ) | Asserting two strings equality ignoring line endings | |
getParam ( string $name, mixed $default = null ) : mixed | Returns a test configuration param from /data/config.php |
Method | Description | |
---|---|---|
destroyApplication ( ) | Destroys application in Yii::$app by setting it to null. | |
getVendorPath ( ) | ||
mockApplication ( array $config = [], string $appClass = '\yii\console\Application' ) | Populates Yii::$app with a new application The application will be destroyed on tearDown() automatically. | |
mockWebApplication ( $config = [], $appClass = '\yii\web\Application' ) | ||
tearDown ( ) | Clean up after test. |
public assertEqualsWithoutLE ( string $expected, string $actual ) | ||
$expected | string | |
$actual | string |
protected destroyApplication ( ) |
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 |
protected mockWebApplication ( $config = [], $appClass = '\yii\web\Application' ) |
protected tearDown ( ) |