PHP 클래스 Cascade\Tests\Config\Loader\FileLoader\FileLoaderAbstractTest

저자: Raphael Antonmattei ([email protected])
상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: theorchard/monolog-cascade

보호된 프로퍼티들

프로퍼티 타입 설명
$mock PHPUnit_Framework_MockObject_MockObject Mock of extending Cascade\Config\Loader\FileLoader\FileLoaderAbstract

공개 메소드들

메소드 설명
arrayDataProvider ( ) : array Data provider for testGetSectionOf
extensionsDataProvider ( ) : array Data provider for testGetSectionOf
setUp ( )
tearDown ( )
testGetSectionOf ( array $array, string $section, array $expected ) Test the getSectionOf function
testLoadFileFromString ( ) Test loading config from a valid file
testReadFrom ( ) Test loading config from a valid file
testValidateExtension ( boolean $expected, $filepath ) Test validating the extension
testloadFileFromInvalidFile ( ) Test loading an invalid file

메소드 상세

arrayDataProvider() 공개 메소드

Data provider for testGetSectionOf
public arrayDataProvider ( ) : array
리턴 array array wit original value, section and expected value

extensionsDataProvider() 공개 메소드

Data provider for testGetSectionOf
public extensionsDataProvider ( ) : array
리턴 array array with original value, section and expected value

setUp() 공개 메소드

public setUp ( )

tearDown() 공개 메소드

public tearDown ( )

testGetSectionOf() 공개 메소드

Test the getSectionOf function
public testGetSectionOf ( array $array, string $section, array $expected )
$array array Array of options
$section string Section key
$expected array Expected array for the given section

testLoadFileFromString() 공개 메소드

Test loading config from a valid file

testReadFrom() 공개 메소드

Test loading config from a valid file
public testReadFrom ( )

testValidateExtension() 공개 메소드

Test validating the extension
public testValidateExtension ( boolean $expected, $filepath )
$expected boolean Expected boolean value

testloadFileFromInvalidFile() 공개 메소드

Test loading an invalid file

프로퍼티 상세

$mock 보호되어 있는 프로퍼티

Mock of extending Cascade\Config\Loader\FileLoader\FileLoaderAbstract
protected PHPUnit_Framework_MockObject_MockObject $mock
리턴 PHPUnit_Framework_MockObject_MockObject