Skip to content

Commit 0b3e251

Browse files
carusogabrielclue
authored andcommitted
Support PHPUnit 6
1 parent a729b36 commit 0b3e251

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
}
1919
},
2020
"require-dev": {
21-
"phpunit/phpunit": "^4.8.35 || ^5.7",
22-
"clue/block-react": "^1.1"
21+
"clue/block-react": "^1.1",
22+
"phpunit/phpunit": "^6.4 || ^5.7 || ^4.8.35"
2323
}
2424
}

tests/MiddlewareRunnerTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,12 @@
1313

1414
final class MiddlewareRunnerTest extends TestCase
1515
{
16+
/**
17+
* @expectedException RuntimeException
18+
* @expectedExceptionMessage No middleware to run
19+
*/
1620
public function testDefaultResponse()
1721
{
18-
$this->setExpectedException('\RuntimeException');
1922
$request = new ServerRequest('GET', 'https://example.com/');
2023
$middlewares = array();
2124
$middlewareStack = new MiddlewareRunner($middlewares);

0 commit comments

Comments
 (0)