Skip to content

Commit

Permalink
Run tests on PHPUnit 9
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonFrings committed Sep 6, 2021
1 parent 18a179a commit 0563e4c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
, "ratchet/rfc6455": "^0.3"
}
, "require-dev": {
"phpunit/phpunit": "~4.8"
"phpunit/phpunit": "^9.3 || ^5.7 || ^4.8"
}
, "suggest": {
"reactivex/rxphp": "~2.0"
Expand Down
3 changes: 1 addition & 2 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
forceCoversAnnotation="true"
mapTestClassNameToCoveredClassName="true"
bootstrap="tests/bootstrap.php"
bootstrap="vendor/autoload.php"
colors="true"
backupGlobals="false"
backupStaticAttributes="false"
Expand Down
3 changes: 0 additions & 3 deletions tests/bootstrap.php

This file was deleted.

2 changes: 1 addition & 1 deletion tests/unit/ConnectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function uriDataProvider() {
public function testSecureConnectionUsesTlsScheme($uri, $expectedConnectorUri) {
$loop = Factory::create();

$connector = $this->getMock('React\Socket\ConnectorInterface');
$connector = $this->getMockBuilder('React\Socket\ConnectorInterface')->getMock();

$connector->expects($this->once())
->method('connect')
Expand Down

0 comments on commit 0563e4c

Please sign in to comment.