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

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

보호된 프로퍼티들

프로퍼티 타입 설명
$jsonLoader PHPUnit_Framework_MockObject_MockBuilder JSON loader mock builder

공개 메소드들

메소드 설명
notStringDataProvider ( ) : array Data provider for testSupportsWithInvalidResource
setUp ( )
tearDown ( )
testLoad ( ) Test loading a JSON string
testSupportsWithInvalidResource ( mixed $invalidResource ) Test loading resources supported by the JsonLoader
testSupportsWithJsonFile ( ) Test loading a JSON file Note that this function tests isJson with a valid Json string
testSupportsWithJsonString ( ) Test loading a JSON string
testSupportsWithNonJsonString ( ) Test isJson method with invalid JSON string.

메소드 상세

notStringDataProvider() 공개 메소드

Data provider for testSupportsWithInvalidResource
public notStringDataProvider ( ) : array
리턴 array array non-string values

setUp() 공개 메소드

public setUp ( )

tearDown() 공개 메소드

public tearDown ( )

testLoad() 공개 메소드

Test loading a JSON string
public testLoad ( )

testSupportsWithInvalidResource() 공개 메소드

Test loading resources supported by the JsonLoader
public testSupportsWithInvalidResource ( mixed $invalidResource )
$invalidResource mixed Invalid resource value

testSupportsWithJsonFile() 공개 메소드

Test loading a JSON file Note that this function tests isJson with a valid Json string

testSupportsWithJsonString() 공개 메소드

Test loading a JSON string

testSupportsWithNonJsonString() 공개 메소드

Valid scenario is tested by the method above

프로퍼티 상세

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

JSON loader mock builder
protected PHPUnit_Framework_MockObject_MockBuilder $jsonLoader
리턴 PHPUnit_Framework_MockObject_MockBuilder