PHP Class Neos\Cache\Tests\BaseTestCase

Inheritance: extends PHPUnit_Framework_TestCase
Mostrar archivo Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Property Type Description
$backupGlobalsBlacklist array
$backupStaticAttributes boolean Enable or disable the backup and restoration of static attributes.

Public Methods

Method Description
createMock ( string $originalClassName ) : PHPUnit_Framework_MockObject_MockObject Returns a test double for the specified class.

Protected Methods

Method Description
inject ( object $target, string $name, mixed $dependency ) : void Injects $dependency into property $name of $target

Method Details

createMock() public method

This can be removed as soon as we drop support for PHPUnit 4.8
public createMock ( string $originalClassName ) : PHPUnit_Framework_MockObject_MockObject
$originalClassName string
return PHPUnit_Framework_MockObject_MockObject

inject() protected method

This is a convenience method for setting a protected or private property in a test subject for the purpose of injecting a dependency.
protected inject ( object $target, string $name, mixed $dependency ) : void
$target object The instance which needs the dependency
$name string Name of the property to be injected
$dependency mixed The dependency to inject – usually an object but can also be any other type
return void

Property Details

$backupGlobalsBlacklist protected_oe property

protected array $backupGlobalsBlacklist
return array

$backupStaticAttributes protected_oe property

Enable or disable the backup and restoration of static attributes.
protected bool $backupStaticAttributes
return boolean