Skip to content
This repository was archived by the owner on Apr 8, 2024. It is now read-only.

Commit 9d16d9c

Browse files
committed
Use PHPUnit 7
1 parent d4da3e6 commit 9d16d9c

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"nesbot/carbon": "~1.19"
2323
},
2424
"require-dev": {
25-
"mockery/mockery": "^0.9.1",
26-
"phpunit/phpunit": "~5.0",
25+
"mockery/mockery": "^1",
26+
"phpunit/phpunit": "~7.0",
2727
"psy/psysh": "^0.5.1",
2828
"satooshi/php-coveralls": "^1",
2929
"symfony/var-dumper": "~3.0"

phpunit.xml.dist

-4
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@
4141
</whitelist>
4242
</filter>
4343

44-
<listeners>
45-
<listener class="\Mockery\Adapter\Phpunit\TestListener"></listener>
46-
</listeners>
47-
4844
<logging>
4945
<log type="coverage-html"
5046
target="./build/coverage"

tests/TestCase.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
use Iterator;
88
use Mockery;
99
use Mockery\MockInterface;
10-
use PHPUnit_Framework_TestCase;
10+
use PHPUnit\Framework\TestCase as PHPUnitTestCase;
1111

1212
/**
1313
* Class TestCase
1414
*
1515
* @package Tests\Spinen\BrowserFilter
1616
*/
17-
abstract class TestCase extends PHPUnit_Framework_TestCase
17+
abstract class TestCase extends PHPUnitTestCase
1818
{
1919
public function tearDown()
2020
{
@@ -31,7 +31,7 @@ public function tearDown()
3131
* @link https://gist.github.com/VladaHejda/8299871
3232
*
3333
* @param MockInterface $mock
34-
* @param array $items
34+
* @param array $items
3535
*
3636
* @return void
3737
*/
@@ -80,7 +80,7 @@ protected function mockArrayIterator(MockInterface $mock, array $items)
8080

8181
$mock->shouldReceive('next')
8282
->andReturnUsing(function () use (& $counter) {
83-
++ $counter;
83+
++$counter;
8484
});
8585
}
8686

0 commit comments

Comments
 (0)