Skip to content

Commit 116d7f1

Browse files
Merge branch '5.4' into 6.3
* 5.4: [Tests] Streamline [Validator] updated Romanian translation
2 parents eca495f + 11ac5f1 commit 116d7f1

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Tests/ApplicationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1573,7 +1573,7 @@ public function testRunWithErrorAndDispatcher()
15731573

15741574
$tester = new ApplicationTester($application);
15751575
$tester->run(['command' => 'dym']);
1576-
$this->assertStringContainsString('before.dym.error.after.', $tester->getDisplay(), 'The PHP Error did not dispached events');
1576+
$this->assertStringContainsString('before.dym.error.after.', $tester->getDisplay(), 'The PHP error did not dispatch events');
15771577
}
15781578

15791579
public function testRunDispatchesAllEventsWithError()
@@ -1590,7 +1590,7 @@ public function testRunDispatchesAllEventsWithError()
15901590

15911591
$tester = new ApplicationTester($application);
15921592
$tester->run(['command' => 'dym']);
1593-
$this->assertStringContainsString('before.dym.error.after.', $tester->getDisplay(), 'The PHP Error did not dispached events');
1593+
$this->assertStringContainsString('before.dym.error.after.', $tester->getDisplay(), 'The PHP error did not dispatch events');
15941594
}
15951595

15961596
public function testRunWithErrorFailingStatusCode()

Tests/Helper/TableTest.php

Lines changed: 4 additions & 3 deletions
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)