public function PHPUnit_Framework_TestCase::getMockBuilder in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/src/Framework/TestCase.php \PHPUnit_Framework_TestCase::getMockBuilder()
Returns a builder object to create mock objects using a fluent interface.
@since Method available since Release 3.5.0
Parameters
string $className:
Return value
PHPUnit_Framework_MockObject_MockBuilder
9 calls to PHPUnit_Framework_TestCase::getMockBuilder()
- Framework_MockBuilderTest::testByDefaultDoesNotPassArgumentsToTheConstructor in vendor/
phpunit/ phpunit-mock-objects/ tests/ MockBuilderTest.php - Framework_MockBuilderTest::testByDefaultMocksAllMethods in vendor/
phpunit/ phpunit-mock-objects/ tests/ MockBuilderTest.php - Framework_MockBuilderTest::testByDefaultOriginalCloneIsPreserved in vendor/
phpunit/ phpunit-mock-objects/ tests/ MockBuilderTest.php - Framework_MockBuilderTest::testConstructorArgumentsCanBeSpecified in vendor/
phpunit/ phpunit-mock-objects/ tests/ MockBuilderTest.php - Framework_MockBuilderTest::testMethodsToMockCanBeSpecified in vendor/
phpunit/ phpunit-mock-objects/ tests/ MockBuilderTest.php
File
- vendor/
phpunit/ phpunit/ src/ Framework/ TestCase.php, line 1314
Class
- PHPUnit_Framework_TestCase
- A TestCase defines the fixture to run multiple tests.
Code
public function getMockBuilder($className) {
return new PHPUnit_Framework_MockObject_MockBuilder($this, $className);
}