Skip to content

Commit e95b706

Browse files
[4.x] Fix callable type for beforeEach and afterEach methods
Closes #40
1 parent f28d1ad commit e95b706

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/Benchmark/FailureTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class FailureTest extends TestCase
1313
public function testAsProperties(): void
1414
{
1515
$this->expectException(TypeError::class);
16-
$this->expectExceptionMessage('must be of type callable|array, int given');
16+
$this->expectExceptionMessage('must be of type Closure|array, int given');
1717

1818
$this->benchmark()->compare(123);
1919
}
@@ -32,7 +32,7 @@ public function testAsArray(): void
3232
public function testAsPropertiesWithIterations(): void
3333
{
3434
$this->expectException(TypeError::class);
35-
$this->expectExceptionMessage('must be of type callable|array, int given');
35+
$this->expectExceptionMessage('must be of type Closure|array, int given');
3636

3737
$this->benchmark()->iterations(5)->compare(123);
3838
}
@@ -51,7 +51,7 @@ public function testAsArrayWithIterations(): void
5151
public function testAsPropertiesWithoutData(): void
5252
{
5353
$this->expectException(TypeError::class);
54-
$this->expectExceptionMessage('must be of type callable|array, int given');
54+
$this->expectExceptionMessage('must be of type Closure|array, int given');
5555

5656
$this->benchmark()->compare(123);
5757
}

0 commit comments

Comments
 (0)