Open Journal Systems  3.3.0
PrimitiveTypeDescriptionTest Class Reference
Inheritance diagram for PrimitiveTypeDescriptionTest:
PKPTestCase

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 ()
 

Detailed Description

Test class for PrimitiveTypeDescription and TypeDescription.

See also
PrimitiveTypeDescription

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.

Member Function Documentation

◆ testInstantiateAndCheck()

PrimitiveTypeDescriptionTest::testInstantiateAndCheck ( )

◆ testInstantiateWithInvalidTypeDescriptor1()

PrimitiveTypeDescriptionTest::testInstantiateWithInvalidTypeDescriptor1 ( )

◆ testInstantiateWithInvalidTypeDescriptor2()

PrimitiveTypeDescriptionTest::testInstantiateWithInvalidTypeDescriptor2 ( )

◆ testInstantiateWithInvalidTypeDescriptor3()

PrimitiveTypeDescriptionTest::testInstantiateWithInvalidTypeDescriptor3 ( )

The documentation for this class was generated from the following file: