Property | Type | Description | |
---|---|---|---|
$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 |
Method | Description | |
---|---|---|
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. |
Method | Description | |
---|---|---|
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 ( ) |
public checkExtension ( mixed $extension ) | ||
$extension | mixed |
public getDI ( ) : Phalcon\DiInterface | ||
return | Phalcon\DiInterface |
public setConfig ( Phalcon\Config $config ) | ||
$config | Phalcon\Config |
public setDI ( Phalcon\DiInterface $di ) | ||
$di | Phalcon\DiInterface |
protected Config,Phalcon|null $config | ||
return | Phalcon\Config | null |