PHP 클래스 Phalcon\Test\UnitTestCase

상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: phalcon/incubator 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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