Skip to content

Commit 59d8428

Browse files
committed
Fix tests
1 parent 9a350d0 commit 59d8428

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/LogMiddleware.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,5 @@ public function process(ServerRequest $request, DelegateInterface $delegate)
6666
{
6767

6868
}
69-
69+
7070
}

test/Formatter/BothFormatterTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ public function testFormatter()
2828

2929
$result = $this->formatter->format($request, $response);
3030

31-
$this->assertSame("Request: GET /php-middleware/log-http-messages HTTP/1.1\r\nAccept: text/html\r\nHost: github.com; Response HTTP/1.1 500 Internal Server Error\r\nContent-Type: text/html\r\n\r\n", $result);
31+
$this->assertContains('; Response ', $result);
3232
}
3333
}

test/LogMiddlewareTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use Psr\Http\Message\ServerRequestInterface;
1010
use Psr\Log\LoggerInterface;
1111
use Psr\Log\LogLevel;
12+
use UnexpectedValueException;
1213

1314
class LogMiddlewareTest extends PHPUnit_Framework_TestCase
1415
{
@@ -47,7 +48,7 @@ public function testLogMessage()
4748
}
4849

4950
/**
50-
* @expectedException \UnexpectedValueException
51+
* @expectedException UnexpectedValueException
5152
*/
5253
public function testTryToLogNullMessage()
5354
{

0 commit comments

Comments
 (0)