Migrated from PHPUnit_Framework_TestCase#assertRegExp() (deprecated) to #assertMatchesRegularExpression()

This commit is contained in:
Marco Pivetta
2022-03-22 12:43:22 +01:00
parent 4cae6c8914
commit 5f9cd80b1b
@@ -91,7 +91,7 @@ class SystemNodeProviderTest extends TestCase
'Node should be a hexadecimal string of 12 characters. Actual node: %s (length: %s)',
[$node->toString(), strlen($node->toString()),]
);
$this->assertRegExp('/^[A-Fa-f0-9]{12}$/', $node->toString(), $message);
$this->assertMatchesRegularExpression('/^[A-Fa-f0-9]{12}$/', $node->toString(), $message);
}
/**