protected function PHPUnit_Framework_TestCase::getObjectForTrait in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/src/Framework/TestCase.php \PHPUnit_Framework_TestCase::getObjectForTrait()
Returns an object for the specified trait.
@since Method available since Release 3.6.0
Parameters
string $traitName:
array $arguments:
string $traitClassName:
bool $callOriginalConstructor:
bool $callOriginalClone:
bool $callAutoload:
bool $cloneArguments:
Return value
object
Throws
File
- vendor/
phpunit/ phpunit/ src/ Framework/ TestCase.php, line 1474
Class
- PHPUnit_Framework_TestCase
- A TestCase defines the fixture to run multiple tests.
Code
protected function getObjectForTrait($traitName, array $arguments = array(), $traitClassName = '', $callOriginalConstructor = true, $callOriginalClone = true, $callAutoload = true, $cloneArguments = false) {
return $this
->getMockObjectGenerator()
->getObjectForTrait($traitName, $arguments, $traitClassName, $callOriginalConstructor, $callOriginalClone, $callAutoload, $cloneArguments);
}