protected function PHPUnit_Framework_TestCase::getMockObjectGenerator in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/src/Framework/TestCase.php \PHPUnit_Framework_TestCase::getMockObjectGenerator()
Get the mock object generator, creating it if it doesn't exist.
Return value
PHPUnit_Framework_MockObject_Generator
File
- vendor/
phpunit/ phpunit/ src/ Framework/ TestCase.php, line 1887
Class
- PHPUnit_Framework_TestCase
- A TestCase defines the fixture to run multiple tests.
Code
protected function getMockObjectGenerator() {
if (null === $this->mockObjectGenerator) {
$this->mockObjectGenerator = new PHPUnit_Framework_MockObject_Generator();
}
return $this->mockObjectGenerator;
}