Skip to content

Commit 11ac5f1

Browse files
OskarStarknicolas-grekas
authored andcommitted
[Tests] Streamline
1 parent f4f7184 commit 11ac5f1

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Tests/ApplicationTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1536,7 +1536,7 @@ public function testRunWithErrorAndDispatcher()
15361536

15371537
$tester = new ApplicationTester($application);
15381538
$tester->run(['command' => 'dym']);
1539-
$this->assertStringContainsString('before.dym.error.after.', $tester->getDisplay(), 'The PHP Error did not dispached events');
1539+
$this->assertStringContainsString('before.dym.error.after.', $tester->getDisplay(), 'The PHP error did not dispatch events');
15401540
}
15411541

15421542
public function testRunDispatchesAllEventsWithError()
@@ -1553,7 +1553,7 @@ public function testRunDispatchesAllEventsWithError()
15531553

15541554
$tester = new ApplicationTester($application);
15551555
$tester->run(['command' => 'dym']);
1556-
$this->assertStringContainsString('before.dym.error.after.', $tester->getDisplay(), 'The PHP Error did not dispached events');
1556+
$this->assertStringContainsString('before.dym.error.after.', $tester->getDisplay(), 'The PHP error did not dispatch events');
15571557
}
15581558

15591559
public function testRunWithErrorFailingStatusCode()

Tests/Helper/TableTest.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -1017,15 +1017,16 @@ public function testColumnStyle()
10171017

10181018
public function testThrowsWhenTheCellInAnArray()
10191019
{
1020-
$this->expectException(InvalidArgumentException::class);
1021-
$this->expectExceptionMessage('A cell must be a TableCell, a scalar or an object implementing "__toString()", "array" given.');
1022-
$table = new Table($output = $this->getOutputStream());
1020+
$table = new Table($this->getOutputStream());
10231021
$table
10241022
->setHeaders(['ISBN', 'Title', 'Author', 'Price'])
10251023
->setRows([
10261024
['99921-58-10-7', [], 'Dante Alighieri', '9.95'],
10271025
]);
10281026

1027+
$this->expectException(InvalidArgumentException::class);
1028+
$this->expectExceptionMessage('A cell must be a TableCell, a scalar or an object implementing "__toString()", "array" given.');
1029+
10291030
$table->render();
10301031
}
10311032

0 commit comments

Comments
 (0)