protected function 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:

boolean $callOriginalConstructor:

boolean $callOriginalClone:

boolean $callAutoload:

boolean $cloneArguments:

Return value

string

Throws

PHPUnit_Framework_Exception

4 calls to PHPUnit_Framework_TestCase::getMockClass()
Framework_MockObjectTest::testStaticMethodCallWithArgumentCloningDisabled in drupal/core/vendor/phpunit/phpunit-mock-objects/Tests/MockObjectTest.php
Framework_MockObjectTest::testStaticMethodCallWithArgumentCloningEnabled in drupal/core/vendor/phpunit/phpunit-mock-objects/Tests/MockObjectTest.php
Framework_MockObjectTest::testStubbedReturnValueForStaticMethod in drupal/core/vendor/phpunit/phpunit-mock-objects/Tests/MockObjectTest.php
Framework_MockObjectTest::testStubbedReturnValueForStaticMethod2 in drupal/core/vendor/phpunit/phpunit-mock-objects/Tests/MockObjectTest.php

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php, line 1354

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);
}