Skip to content

Commit 8580ade

Browse files
committed
Refactored other PHPUnit method calls to work with namespaced PHPUnit 6
1 parent b9919c1 commit 8580ade

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Tests/AbstractLayoutTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2424,6 +2424,8 @@ public function testWidgetAttributes()
24242424
// compare plain HTML to check the whitespace
24252425
try {
24262426
$this->assertSame('<input type="text" id="text" name="text" readonly="readonly" disabled="disabled" required="required" maxlength="10" pattern="\d+" class="foobar" data-foo="bar" value="value" />', $html);
2427+
} catch (\PHPUnit\Framework\AssertionFailedError $e) {
2428+
$this->assertSame('<input type="text" id="text" name="text" disabled="disabled" required="required" readonly="readonly" maxlength="10" pattern="\d+" class="foobar" data-foo="bar" value="value" />', $html);
24272429
} catch (\PHPUnit_Framework_AssertionFailedError $e) {
24282430
$this->assertSame('<input type="text" id="text" name="text" disabled="disabled" required="required" readonly="readonly" maxlength="10" pattern="\d+" class="foobar" data-foo="bar" value="value" />', $html);
24292431
}

0 commit comments

Comments
 (0)