Skip to content

Commit ef41117

Browse files
committed
refactor IntegrationTest
1 parent 7802f9f commit ef41117

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

tests/IntegrationTest.php

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,10 @@
22

33
namespace Spatie\HttpLogger\Test;
44

5-
class IntegrationTest extends TestCase
6-
{
7-
/** @test */
8-
public function it_logs_an_incoming_request_via_the_middleware()
9-
{
10-
$this->call('post', '/');
11-
12-
$this->assertFileExists($this->getLogFile());
13-
}
14-
}
5+
use function PHPUnit\Framework\assertFileExists;
6+
7+
test('it logs an incoming request via the middleware', function () {
8+
$this->call('post', '/');
9+
10+
assertFileExists($this->getLogFile());
11+
});

0 commit comments

Comments
 (0)