Skip to content

Commit 8f2569b

Browse files
committed
Upgraded PHPUnit from 7 to 8
1 parent 7d0de08 commit 8f2569b

27 files changed

+46
-44
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ tests/fixtures/cassette*
77
/.php_cs.cache
88
/.php_cs
99
composer.lock
10+
.phpunit.result.cache

.php_cs.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ return PhpCsFixer\Config::create()
55
'@PSR2' => true,
66
'@Symfony' => true,
77
'@Symfony:risky' => true,
8-
'@PHPUnit60Migration:risky' => true
8+
'@PHPUnit84Migration:risky' => true
99
])
1010
->setFinder(
1111
PhpCsFixer\Finder::create()

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"symfony/event-dispatcher": "^2.4|^3.0|^4.0|^5.0"
2323
},
2424
"require-dev": {
25-
"phpunit/phpunit": "^7.4.3",
25+
"phpunit/phpunit": "^8.4.0",
2626
"mikey179/vfsstream": "^1.6",
2727
"phpstan/phpstan": "^0.12",
2828
"phpstan/phpstan-beberlei-assert": "^0.12.0",

src/VCR/LibraryHooks/SoapHook.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function doRequest(string $request, string $location, string $action, int
6565

6666
$vcrRequest = new Request('POST', $location);
6767

68-
if (SOAP_1_1 === $version) {
68+
if (\SOAP_1_1 === $version) {
6969
$vcrRequest->setHeader('Content-Type', 'text/xml; charset=utf-8;');
7070
$vcrRequest->setHeader('SOAPAction', $action);
7171
} else { // >= SOAP_1_2

tests/VCR/CassetteTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class CassetteTest extends TestCase
1515
*/
1616
private $cassette;
1717

18-
protected function setUp()
18+
protected function setUp(): void
1919
{
2020
vfsStream::setup('test');
2121
$this->cassette = new Cassette('test', new Configuration(), new Storage\Yaml(vfsStream::url('test/'), 'json_test'));

tests/VCR/ConfigurationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class ConfigurationTest extends TestCase
1111
*/
1212
private $config;
1313

14-
protected function setUp()
14+
protected function setUp(): void
1515
{
1616
$this->config = new Configuration();
1717
}

tests/VCR/Event/AfterHttpRequestEventTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class AfterHttpRequestEventTest extends TestCase
1313
*/
1414
private $event;
1515

16-
protected function setUp()
16+
protected function setUp(): void
1717
{
1818
$this->event = new AfterHttpRequestEvent(new Request('GET', 'http://example.com'), new Response(200));
1919
}

tests/VCR/Event/AfterPlaybackEventTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class AfterPlaybackEventTest extends TestCase
1616
*/
1717
private $event;
1818

19-
protected function setUp()
19+
protected function setUp(): void
2020
{
2121
$this->event = new AfterPlaybackEvent(
2222
new Request('GET', 'http://example.com'),

tests/VCR/Event/BeforeHttpRequestEventTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class BeforeHttpRequestEventTest extends TestCase
1212
*/
1313
private $event;
1414

15-
protected function setUp()
15+
protected function setUp(): void
1616
{
1717
$this->event = new BeforeHttpRequestEvent(new Request('GET', 'http://example.com'));
1818
}

tests/VCR/Event/BeforePlaybackEventTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class BeforePlaybackEventTest extends TestCase
1515
*/
1616
private $event;
1717

18-
protected function setUp()
18+
protected function setUp(): void
1919
{
2020
$this->event = new BeforePlaybackEvent(
2121
new Request('GET', 'http://example.com'),

0 commit comments

Comments
 (0)