Permalink
Browse files

Update documentation to PHPUnit-6 API

  • Loading branch information...
malkusch committed Feb 17, 2017
1 parent 77a2c35 commit 173781abdc632c59200253e12e2b991ae6a4574f
Showing with 11 additions and 15 deletions.
  1. +2 −4 README.md
  2. +9 −11 classes/PHPMock.php
View
@@ -26,12 +26,10 @@ PHPUnit mock:
namespace foo;
use phpmock\phpunit\PHPMock;
class BuiltinTest extends \PHPUnit_Framework_TestCase
class BuiltinTest extends \PHPUnit\Framework\TestCase
{
use PHPMock;
use \phpmock\phpunit\PHPMock;
public function testTime()
{
View
@@ -7,20 +7,18 @@
use phpmock\Deactivatable;
/**
* Adds building a function mock functionality into PHPUnit_Framework_TestCase.
* Adds building a function mock functionality into \PHPUnit\Framework\TestCase.
*
* Use this trait in your PHPUnit_Framework_TestCase:
* Use this trait in your \PHPUnit\Framework\TestCase:
* <code>
* <?php
*
* namespace foo;
*
* use phpmock\phpunit\PHPMock;
*
* class FooTest extends \PHPUnit_Framework_TestCase
* class FooTest extends \PHPUnit\Framework\TestCase
* {
*
* use PHPMock;
* use \phpmock\phpunit\PHPMock;
*
* public function testBar()
* {
@@ -41,22 +39,22 @@
/**
* Returns a builder object to create mock objects using a fluent interface.
*
* This method exists in PHPUnit_Framework_TestCase.
* This method exists in \PHPUnit\Framework\TestCase.
*
* @param string $className Name of the class to mock.
* @return \PHPUnit_Framework_MockObject_MockBuilder
* @see \PHPUnit_Framework_TestCase::getMockBuilder()
* @see \PHPUnit\Framework\TestCase::getMockBuilder()
* @internal
*/
abstract protected function getMockBuilder($className);
/**
* Returns the test result.
*
* This method exists in PHPUnit_Framework_TestCase.
* This method exists in \PHPUnit\Framework\TestCase.
*
* @return \PHPUnit_Framework_TestResult The test result.
* @see \PHPUnit_Framework_TestCase::getTestResultObject()
* @return \PHPUnit\Framework\TestResult The test result.
* @see \PHPUnit\Framework\TestCase::getTestResultObject()
* @internal
*/
abstract protected function getTestResultObject();

0 comments on commit 173781a

Please sign in to comment.