PHP Класс Neos\Cache\Tests\BaseTestCase

Наследование: extends PHPUnit_Framework_TestCase
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$backupGlobalsBlacklist array
$backupStaticAttributes boolean Enable or disable the backup and restoration of static attributes.

Открытые методы

Метод Описание
createMock ( string $originalClassName ) : PHPUnit_Framework_MockObject_MockObject Returns a test double for the specified class.

Защищенные методы

Метод Описание
inject ( object $target, string $name, mixed $dependency ) : void Injects $dependency into property $name of $target

Описание методов

createMock() публичный Метод

This can be removed as soon as we drop support for PHPUnit 4.8
public createMock ( string $originalClassName ) : PHPUnit_Framework_MockObject_MockObject
$originalClassName string
Результат PHPUnit_Framework_MockObject_MockObject

inject() защищенный Метод

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
Результат void

Описание свойств

$backupGlobalsBlacklist защищенное свойство

protected array $backupGlobalsBlacklist
Результат array

$backupStaticAttributes защищенное свойство

Enable or disable the backup and restoration of static attributes.
protected bool $backupStaticAttributes
Результат boolean