Skip to content

Commit 0844e03

Browse files
authored
Merge pull request #771 from driehle/fix/broken-tests
Fixed broken test cases occuring with laminas-test 3.8.0
2 parents 10f14c8 + c167352 commit 0844e03

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"laminas/laminas-mvc-console": "^1.3.0",
7878
"laminas/laminas-serializer": "^2.11.0",
7979
"laminas/laminas-session": "^2.12.0",
80-
"laminas/laminas-test": "^3.5.1",
80+
"laminas/laminas-test": "^3.8.0",
8181
"phpspec/prophecy-phpunit": "^2.0.1",
8282
"phpstan/phpstan": "^1.1.2",
8383
"phpstan/phpstan-phpunit": "^1.0.0",

tests/Controller/CliControllerTest.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ protected function setUp(): void
4040
*/
4141
public function testIndexActionCanBeAccessed(): void
4242
{
43-
/** @phpstan-ignore-next-line */
44-
$this->dispatch(new Request(['scriptname.php', 'list']));
43+
$this->dispatch((string) (new Request(['scriptname.php', 'list'])));
4544

4645
$this->assertResponseStatusCode(0);
4746
$this->assertModuleName('doctrinemodule');
@@ -53,16 +52,14 @@ public function testIndexActionCanBeAccessed(): void
5352

5453
public function testNonZeroExitCode(): void
5554
{
56-
/** @phpstan-ignore-next-line */
57-
$this->dispatch(new Request(['scriptname.php', 'fail']));
55+
$this->dispatch((string) (new Request(['scriptname.php', 'fail'])));
5856

5957
$this->assertNotResponseStatusCode(0);
6058
}
6159

6260
public function testException(): void
6361
{
64-
/** @phpstan-ignore-next-line */
65-
$this->dispatch(new Request(['scriptname.php', '-q', 'fail', '--exception']));
62+
$this->dispatch((string) (new Request(['scriptname.php', '-q', 'fail', '--exception'])));
6663

6764
$this->assertNotResponseStatusCode(0);
6865
}

0 commit comments

Comments
 (0)