Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 61b6e01

Browse files
Fixed the test
1 parent e043c6f commit 61b6e01

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Bundle/FrameworkBundle/Tests/Console/ApplicationTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,19 +232,19 @@ public function testRunOnlyWarnsOnUnregistrableCommandAtTheEnd()
232232
public function testSuggestingPackagesWithExactMatch()
233233
{
234234
$result = $this->createEventForSuggestingPackages('server:dump', []);
235-
$this->assertRegExp('/You may be looking for a command provided by the/', $result);
235+
$this->assertRegExp('/You may be looking for a command provided by/', $result);
236236
}
237237

238238
public function testSuggestingPackagesWithPartialMatchAndNoAlternatives()
239239
{
240240
$result = $this->createEventForSuggestingPackages('server', []);
241-
$this->assertRegExp('/You may be looking for a command provided by the/', $result);
241+
$this->assertRegExp('/You may be looking for a command provided by/', $result);
242242
}
243243

244244
public function testSuggestingPackagesWithPartialMatchAndAlternatives()
245245
{
246246
$result = $this->createEventForSuggestingPackages('server', ['server:run']);
247-
$this->assertNotRegExp('/You may be looking for a command provided by the/', $result);
247+
$this->assertNotRegExp('/You may be looking for a command provided by/', $result);
248248
}
249249

250250
private function createEventForSuggestingPackages(string $command, array $alternatives = []): string

0 commit comments

Comments
 (0)