You are here

protected function PHPUnit_Framework_TestCase::getMockClass in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Framework/TestCase.php \PHPUnit_Framework_TestCase::getMockClass()

Mocks the specified class and returns the name of the mocked class.

@since Method available since Release 3.5.0

Parameters

string $originalClassName:

array $methods:

array $arguments:

string $mockClassName:

bool $callOriginalConstructor:

bool $callOriginalClone:

bool $callAutoload:

bool $cloneArguments:

Return value

string

Throws

PHPUnit_Framework_Exception

File

vendor/phpunit/phpunit/src/Framework/TestCase.php, line 1334

Class

PHPUnit_Framework_TestCase
A TestCase defines the fixture to run multiple tests.

Code

protected function getMockClass($originalClassName, $methods = array(), array $arguments = array(), $mockClassName = '', $callOriginalConstructor = false, $callOriginalClone = true, $callAutoload = true, $cloneArguments = false) {
  $mock = $this
    ->getMock($originalClassName, $methods, $arguments, $mockClassName, $callOriginalConstructor, $callOriginalClone, $callAutoload, $cloneArguments);
  return get_class($mock);
}