You are here

public function PHPUnit_Framework_MockObject_MockBuilder::getMock in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/MockBuilder.php \PHPUnit_Framework_MockObject_MockBuilder::getMock()

Creates a mock object using a fluent interface.

Return value

PHPUnit_Framework_MockObject_MockObject

File

vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/MockBuilder.php, line 88

Class

PHPUnit_Framework_MockObject_MockBuilder
Implementation of the Builder pattern for Mock objects.

Code

public function getMock() {
  return $this->testCase
    ->getMock($this->type, $this->methods, $this->constructorArgs, $this->mockClassName, $this->originalConstructor, $this->originalClone, $this->autoload, $this->cloneArguments, $this->callOriginalMethods, $this->proxyTarget);
}