Open Journal Systems
3.3.0
|
Public Member Functions | |
testInstantiateAndCheck () | |
testInstantiateWithInvalidTypeDescriptor1 () | |
testInstantiateWithInvalidTypeDescriptor2 () | |
testInstantiateWithInvalidTypeDescriptor3 () | |
Public Member Functions inherited from PKPTestCase | |
getActualOutput () | |
Additional Inherited Members | |
Data Fields inherited from PKPTestCase | |
$mockedRegistryKeys = array() | |
$registryBackup = array() | |
Protected Member Functions inherited from PKPTestCase | |
getMockedDAOs () | |
getMockedRegistryKeys () | |
mockRequest ($path='index/test-page/test-op', $userId=null) | |
setTestConfiguration ($config, $configPath='config') | |
setUp () | |
tearDown () | |
Test class for PrimitiveTypeDescription and TypeDescription.
NB: We cannot test TypeDescription without subclasses as it is abstract and cannot be mocked because it relies on an abstract method in its constructor. There's no way to mock methods called in the constructor as the constructor is called before we get a chance to define mock method return values.
Definition at line 26 of file PrimitiveTypeDescriptionTest.php.
PrimitiveTypeDescriptionTest::testInstantiateAndCheck | ( | ) |
Definition at line 31 of file PrimitiveTypeDescriptionTest.php.
PrimitiveTypeDescriptionTest::testInstantiateWithInvalidTypeDescriptor1 | ( | ) |
Definition at line 72 of file PrimitiveTypeDescriptionTest.php.
PrimitiveTypeDescriptionTest::testInstantiateWithInvalidTypeDescriptor2 | ( | ) |
Definition at line 82 of file PrimitiveTypeDescriptionTest.php.
PrimitiveTypeDescriptionTest::testInstantiateWithInvalidTypeDescriptor3 | ( | ) |
Definition at line 92 of file PrimitiveTypeDescriptionTest.php.