PHP Class ArrayTest

Inheritance: extends TestCase
Datei anzeigen Open project: netresearch/jsonmapper Class Usage Examples

Public Methods

Method Description
mapTypedArrayObjectDoesNotExistAutoloader ( $class )
testArrayObjectInvalidNull ( ) An ArrayObject which may not be null but is.
testArrayObjectNullable ( ) A nullable ArrayObject which is null.
testFlArray ( ) Test for an array of float "@var float[]"
testFlArrayKeyed ( ) Test for an array of float "@var float[]"
testInvalidArray ( )
testInvalidArrayObject ( )
testMapArrayJsonNoTypeEnforcement ( )
testMapArrayObject ( ) Test for "@var ArrayObject"
testMapSimpleArrayObject ( ) Test for "@var ArrayObject[int]"
testMapTypedArray ( ) Test for an array of classes "@var Classname[]"
testMapTypedArrayObject ( ) Test for "@var ArrayObject[Classname]"
testMapTypedArrayObjectDoesNotExist ( ) The TYPO3 autoloader breaks if we autoload a class with a [ or ] in its name.
testMapTypedSimpleArray ( ) Test for an array of classes "@var ClassName[]" with flat/simple json values (string)
testNonNullableArrayObjectWithLooseNullChecks ( ) Exception is not thrown when a non-nullable object has null value but strict nullable checks are turned off
testNullableSimple ( ) Test for an array that is nullable - "@var string[]|null"
testStrArray ( ) Test for an array of strings - "@var string[]"
testStrArrayV2 ( ) Test for an array of strings - "@var array[string]"

Method Details

mapTypedArrayObjectDoesNotExistAutoloader() public method

testArrayObjectInvalidNull() public method

An ArrayObject which may not be null but is.

testArrayObjectNullable() public method

A nullable ArrayObject which is null.

testFlArray() public method

Test for an array of float "@var float[]"
public testFlArray ( )

testFlArrayKeyed() public method

Test for an array of float "@var float[]"
public testFlArrayKeyed ( )

testInvalidArray() public method

public testInvalidArray ( )

testInvalidArrayObject() public method

testMapArrayJsonNoTypeEnforcement() public method

testMapArrayObject() public method

Test for "@var ArrayObject"
public testMapArrayObject ( )

testMapSimpleArrayObject() public method

Test for "@var ArrayObject[int]"

testMapTypedArray() public method

Test for an array of classes "@var Classname[]"
public testMapTypedArray ( )

testMapTypedArrayObject() public method

Test for "@var ArrayObject[Classname]"

testMapTypedArrayObjectDoesNotExist() public method

The TYPO3 autoloader breaks if we autoload a class with a [ or ] in its name.

testMapTypedSimpleArray() public method

Test for an array of classes "@var ClassName[]" with flat/simple json values (string)

testNonNullableArrayObjectWithLooseNullChecks() public method

Exception is not thrown when a non-nullable object has null value but strict nullable checks are turned off

testNullableSimple() public method

Test for an array that is nullable - "@var string[]|null"
public testNullableSimple ( )

testStrArray() public method

Test for an array of strings - "@var string[]"
public testStrArray ( )

testStrArrayV2() public method

Test for an array of strings - "@var array[string]"
public testStrArrayV2 ( )