Skip to content

Commit 911cb29

Browse files
committed
Refactor executing functional tests without ext-readline
Instead of executing without *any* extensions, we explicitly execute without just the readline functions. This is necessary because Composer 2 now complains when its required extensions are not available.
1 parent 306886e commit 911cb29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/FunctionalExampleTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ public function testStubCanEndWithoutOutput()
9696
$this->assertEquals('', $output);
9797
}
9898

99-
public function testStubCanEndWithoutExtensions()
99+
public function testStubCanEndWithoutReadlineFunctions()
100100
{
101-
$output = $this->execExample('php -n ../tests/stub/04-end.php');
101+
$output = $this->execExample('php -d disable_functions=readline_callback_handler_install,readline_callback_handler_remove ../tests/stub/04-end.php');
102102

103103
$this->assertEquals('', $output);
104104
}

0 commit comments

Comments
 (0)