PHP Класс Cascade\Tests\Config\Loader\FileLoader\JsonTest

Автор: Raphael Antonmattei ([email protected])
Наследование: extends PHPUnit_Framework_TestCase
Показать файл Открыть проект

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

Свойство Тип Описание
$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