Open Journal Systems  2.4.3
 All Classes Namespaces Functions Variables Groups Pages
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

- Protected Member Functions inherited from PKPTestCase
 getMockedDAOs ()
 
 getMockedRegistryKeys ()
 
 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

PrimitiveTypeDescriptionTest::testInstantiateAndCheck ( )
PrimitiveTypeDescriptionTest::testInstantiateWithInvalidTypeDescriptor1 ( )

PrimitiveTypeDescription TypeDescription PHPUnit_Framework_Error

Definition at line 73 of file PrimitiveTypeDescriptionTest.php.

PrimitiveTypeDescriptionTest::testInstantiateWithInvalidTypeDescriptor2 ( )

PrimitiveTypeDescription TypeDescription PHPUnit_Framework_Error

Definition at line 83 of file PrimitiveTypeDescriptionTest.php.

PrimitiveTypeDescriptionTest::testInstantiateWithInvalidTypeDescriptor3 ( )

PrimitiveTypeDescription TypeDescription PHPUnit_Framework_Error

Definition at line 93 of file PrimitiveTypeDescriptionTest.php.


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