Skip to content

Commit

Permalink
Fix deprecated code.
Browse files Browse the repository at this point in the history
  • Loading branch information
TravisCarden committed Jun 11, 2021
1 parent ff682c9 commit 48a83f1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/BehatTableComparison/TableEqualityAssertionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public function testAssertionWithUnequalTables($left, $right, $expected)
->ignoreRowOrder()
->assert();
} catch (UnequalTablesException $e) {
$expected = implode($expected, PHP_EOL);
$expected = implode(PHP_EOL, $expected);
self::assertSame($expected, $e->getMessage());
throw $e;
}
Expand Down Expand Up @@ -231,7 +231,7 @@ public function testAssertionWithUnspecifiedInequalities($left, $right)
->ignoreRowOrder()
->assert();
} catch (UnequalTablesException $e) {
self::assertUnspecifiedErrorException($e, $right);
$this->assertUnspecifiedErrorException($e, $right);
throw $e;
}
}
Expand Down Expand Up @@ -335,12 +335,12 @@ public function testAssertionWithHeaderMismatch()
->expectHeader(['label', 'id'])
->assert();
} catch (\LogicException $e) {
$expected = implode([
$expected = implode(PHP_EOL, [
'--- Expected header',
'| label | id |',
'+++ Given',
'| Label one | id1 |',
], PHP_EOL);
]);
self::assertSame($expected, $e->getMessage());
throw $e;
}
Expand Down

0 comments on commit 48a83f1

Please sign in to comment.