PHP Class miloschumanunit\highcharts\BaseTestCase

Inheritance: extends PHPUnit_Framework_TestCase
Mostra file Open project: miloschuman/yii2-highcharts-widget

Public Properties

Property Type Description
$params

Public Methods

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

Protected Methods

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.

Method Details

assertEqualsWithoutLE() public method

Asserting two strings equality ignoring line endings
public assertEqualsWithoutLE ( string $expected, string $actual )
$expected string
$actual string

destroyApplication() protected method

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

getParam() public static method

Returns a test configuration param from /data/config.php
public static getParam ( string $name, mixed $default = null ) : mixed
$name string params name
$default mixed default value to use when param is not set.
return mixed the value of the configuration param

getVendorPath() protected method

protected getVendorPath ( )

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

mockWebApplication() protected method

protected mockWebApplication ( $config = [], $appClass = '\yii\web\Application' )

tearDown() protected method

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

Property Details

$params public_oe static_oe property

public static $params