Skip to content

Commit

Permalink
Merge pull request #26 from peter-gribanov/phpunit_namespace
Browse files Browse the repository at this point in the history
Use phpunit/phpunit 4.8.36 for easy to migrate to latest stable PHPUnit
  • Loading branch information
peter-gribanov authored Nov 7, 2019
2 parents d0d54f2 + cbd1046 commit 66efe91
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"twig/twig": "^1.12|^2.0"
},
"require-dev": {
"phpunit/phpunit": "~4.8",
"phpunit/phpunit": "^4.8.36",
"scrutinizer/ocular": "~1.3",
"php-coveralls/php-coveralls": "^1.0",
"friendsofphp/php-cs-fixer": "~2.2",
Expand Down
10 changes: 6 additions & 4 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@

namespace GpsLab\Bundle\PaginationBundle\Tests;

class TestCase extends \PHPUnit_Framework_TestCase
use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase as BaseTestCase;

class TestCase extends BaseTestCase
{
/**
* @param string $class_name
*
* @return \PHPUnit_Framework_MockObject_MockObject
* @return \PHPUnit_Framework_MockObject_MockObject|MockObject
*/
protected function getMockNoConstructor($class_name)
{
Expand All @@ -28,9 +31,8 @@ protected function getMockNoConstructor($class_name)

/**
* @param string $class_name
* @param array $methods
*
* @return \PHPUnit_Framework_MockObject_MockObject
* @return \PHPUnit_Framework_MockObject_MockObject|MockObject
*/
protected function getMockAbstract($class_name, array $methods)
{
Expand Down

0 comments on commit 66efe91

Please sign in to comment.