Abstract base class for all Zeta Components test cases.
Source for this file: /UnitTest/src/test/case.php
PHPUnit_Framework_TestCase | --ezcTestCase
Version: | //autogentag// |
Child Class | Description |
---|---|
ezcTestRegressionTest | |
ezcTestImageCase | Abstract base class for image related test cases. |
public void |
assertSetProperty(
$object
, $propertyName
, $expectedValues
)
Checks if $expectedValues are properly set on $propertyName in $object. |
public void |
assertSetPropertyFails(
$object
, $propertyName
, $setValues
)
Checks if $setValues fail when set on $propertyName in $object. |
public void |
cleanTempDir(
)
|
protected void |
createTempDir(
$prefix
, [ $path
= 'run-tests-tmp'] )
Creates and returns the temporary directory. |
public void |
getTempDir(
)
Get the name of the temporary directory. |
public void |
removeTempDir(
)
Remove the temp directory. |
Checks if $expectedValues are properly set on $propertyName in $object.
Name | Type | Description |
---|---|---|
$object |
||
$propertyName |
||
$expectedValues |
Checks if $setValues fail when set on $propertyName in $object.
Setting the property must result in an exception.
Name | Type | Description |
---|---|---|
$object |
||
$propertyName |
||
$setValues |
Creates and returns the temporary directory.
Name | Type | Description |
---|---|---|
$prefix |
string | Set the prefix of the temporary directory. |
$path |
string | Set the location of the temporary directory. If set to false, the temporary directory will probably placed in the /tmp directory. |
Get the name of the temporary directory.
Remove the temp directory.