You are here

public static function PHPUnit_Framework_TestCase::returnArgument in Zircon Profile 8

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

@since Method available since Release 3.3.0

Parameters

int $argumentIndex:

Return value

PHPUnit_Framework_MockObject_Stub_ReturnArgument

1 call to PHPUnit_Framework_TestCase::returnArgument()
Framework_MockObjectTest::testStubbedReturnArgument in vendor/phpunit/phpunit-mock-objects/tests/MockObjectTest.php

File

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

Class

PHPUnit_Framework_TestCase
A TestCase defines the fixture to run multiple tests.

Code

public static function returnArgument($argumentIndex) {
  return new PHPUnit_Framework_MockObject_Stub_ReturnArgument($argumentIndex);
}