Skip to content

Commit 15be1b2

Browse files
committed
Merge branch 'release/3.4.0'
2 parents 1b8ae4a + ba84cc5 commit 15be1b2

File tree

5 files changed

+20
-27
lines changed

5 files changed

+20
-27
lines changed

.travis.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
language: php
22

33
php:
4-
- 7.0
54
- 7.1
5+
- 7.2
66

77
env:
88
global:
99
- setup=basic
1010

1111
matrix:
12-
fast_finish: true
1312
include:
14-
- php: 7.0
13+
- php: 7.1
1514
env: setup=lowest
16-
- php: 7.0
15+
- php: 7.1
16+
env: setup=stable
17+
- php: 7.2
18+
env: setup=lowest
19+
- php: 7.2
1720
env: setup=stable
1821

1922
sudo: false

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.3.0
1+
3.4.0

composer.json

+6-5
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,17 @@
1515
}
1616
],
1717
"require": {
18-
"php": ">=7",
18+
"php": ">=7.1",
1919
"guzzlehttp/guzzle": "^6.2",
2020
"illuminate/support": "~5.3",
2121
"nesbot/carbon": "~1.20"
2222
},
2323
"require-dev": {
24-
"mockery/mockery": "~0.9.4",
25-
"phpunit/phpunit": "~5.4",
26-
"psy/psysh": "0.7.*|0.8.*",
27-
"satooshi/php-coveralls": "^1.0"
24+
"mockery/mockery": "^1",
25+
"phpunit/phpunit": "~7.0",
26+
"psy/psysh": "0.8.*",
27+
"satooshi/php-coveralls": "^1.0",
28+
"symfony/thanks": "^1.0"
2829
},
2930
"autoload": {
3031
"psr-4": {

phpunit.xml.dist

-4
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@
4545
</whitelist>
4646
</filter>
4747

48-
<listeners>
49-
<listener class="\Mockery\Adapter\Phpunit\TestListener"></listener>
50-
</listeners>
51-
5248
<logging>
5349
<log type="coverage-html"
5450
target="./build/coverage"

tests/TestCase.php

+6-13
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,26 @@
55
use ArrayAccess;
66
use Countable;
77
use Iterator;
8-
use Mockery;
8+
use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
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
{
19-
public function tearDown()
20-
{
21-
if (class_exists('Mockery')) {
22-
Mockery::close();
23-
}
24-
25-
parent::tearDown();
26-
}
19+
use MockeryPHPUnitIntegration;
2720

2821
/**
2922
* Helper to allow mocking of iterator classes.
3023
*
3124
* @link https://gist.github.com/VladaHejda/8299871
3225
*
3326
* @param MockInterface $mock
34-
* @param array $items
27+
* @param array $items
3528
*
3629
* @return void
3730
*/
@@ -80,7 +73,7 @@ protected function mockArrayIterator(MockInterface $mock, array $items)
8073

8174
$mock->shouldReceive('next')
8275
->andReturnUsing(function () use (& $counter) {
83-
++ $counter;
76+
++$counter;
8477
});
8578
}
8679

0 commit comments

Comments
 (0)