1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Command tests

This commit is contained in:
Jordi Boggiano 2022-06-06 10:48:42 +02:00
parent 8792163676
commit 3c11895c1e
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
2 changed files with 58 additions and 1 deletions

View file

@ -28,7 +28,7 @@ class UpdateCommandTest extends TestCase
$appTester = $this->getApplicationTester();
$appTester->run(array_merge(['command' => 'update', '--dry-run' => true], $command));
$this->assertSame(strtr(trim($expected), "\r", ''), strtr(trim($appTester->getDisplay()), "\r", ''));
$this->assertSame(trim($expected), trim($appTester->getDisplay(true)));
}
public function provideUpdates(): \Generator