Skip to content

Commit 8655ff6

Browse files
committed
use the right method in the method_exists check
This technically worked, as the two methods were introduced in the same PHPUnit release, but this is more accurate.
1 parent 1d6675c commit 8655ff6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MarkupAssertionsTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public function assertElementContains($contents, $selector = '', $output = '', $
141141
*/
142142
public function assertElementNotContains($contents, $selector = '', $output = '', $message = '')
143143
{
144-
if (method_exists($this, 'assertStringContainsString')) {
144+
if (method_exists($this, 'assertStringNotContainsString')) {
145145
$this->assertStringNotContainsString(
146146
$contents,
147147
$this->getInnerHtmlOfMatchedElements($output, $selector),

0 commit comments

Comments
 (0)