PHP Класс Phalcon\Test\UnitTestCase

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

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

Свойство Тип Описание
$config Phalcon\Config | null Holds the configuration variables and other stuff I can use the DI container but for tests like the Translate we do not need the overhead
$di Phalcon\DiInterface

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

Метод Описание
checkExtension ( mixed $extension ) Checks if a particular extension is loaded and if not it marks the tests skipped
getConfig ( ) : null | Phalcon\Config Returns the Config object if any.
getDI ( ) : Phalcon\DiInterface Returns the internal Dependency Injector.
setConfig ( Phalcon\Config $config ) Sets the Config object.
setDI ( Phalcon\DiInterface $di ) Sets the Dependency Injector.

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

Метод Описание
cleanFile ( string $path, string $fileName ) Removes a file from the system
getFileName ( string $prefix = '', string $suffix = 'log' ) : string Returns a unique file name
setUp ( ) This method is called before a test is executed.
tearDown ( )

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

checkExtension() публичный метод

Checks if a particular extension is loaded and if not it marks the tests skipped
public checkExtension ( mixed $extension )
$extension mixed

cleanFile() защищенный метод

Removes a file from the system
protected cleanFile ( string $path, string $fileName )
$path string
$fileName string

getConfig() публичный метод

Returns the Config object if any.
public getConfig ( ) : null | Phalcon\Config
Результат null | Phalcon\Config

getDI() публичный метод

Returns the internal Dependency Injector.
См. также: Injectable::getDI
public getDI ( ) : Phalcon\DiInterface
Результат Phalcon\DiInterface

getFileName() защищенный метод

Returns a unique file name
protected getFileName ( string $prefix = '', string $suffix = 'log' ) : string
$prefix string A prefix for the file
$suffix string A suffix for the file
Результат string

setConfig() публичный метод

Sets the Config object.
public setConfig ( Phalcon\Config $config )
$config Phalcon\Config

setDI() публичный метод

Sets the Dependency Injector.
См. также: Injectable::setDI
public setDI ( Phalcon\DiInterface $di )
$di Phalcon\DiInterface

setUp() защищенный метод

This method is called before a test is executed.
protected setUp ( )

tearDown() защищенный метод

protected tearDown ( )

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

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

Holds the configuration variables and other stuff I can use the DI container but for tests like the Translate we do not need the overhead
protected Config,Phalcon|null $config
Результат Phalcon\Config | null

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

protected DiInterface,Phalcon $di
Результат Phalcon\DiInterface