public function PHPUnit_Framework_MockObject_MockBuilder::getMockForTrait in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/MockBuilder.php \PHPUnit_Framework_MockObject_MockBuilder::getMockForTrait()
Creates a mock object for a trait using a fluent interface.
Return value
PHPUnit_Framework_MockObject_MockObject
File
- vendor/
phpunit/ phpunit-mock-objects/ src/ Framework/ MockObject/ MockBuilder.php, line 128
Class
- PHPUnit_Framework_MockObject_MockBuilder
- Implementation of the Builder pattern for Mock objects.
Code
public function getMockForTrait() {
return $this->testCase
->getMockForTrait($this->type, $this->constructorArgs, $this->mockClassName, $this->originalConstructor, $this->originalClone, $this->autoload, $this->methods, $this->cloneArguments);
}