diff --git a/tests/CheckDomainTest.php b/tests/CheckDomainTest.php index 29956a72..845eb155 100644 --- a/tests/CheckDomainTest.php +++ b/tests/CheckDomainTest.php @@ -10,7 +10,7 @@ class CheckDomainTest extends \PHPUnit\Framework\TestCase { $this->assertEquals('', check_domain('example.com')); $this->assertEquals('', check_domain('google.com')); - $this->assertRegExp('/ not discoverable in DNS/', check_domain('fishbeansblahblahblah' . uniqid() . '.com')); + $this->assertMatchesRegularExpression('/ not discoverable in DNS/', check_domain('fishbeansblahblahblah' . uniqid() . '.com')); } } diff --git a/tests/CheckEmailTest.php b/tests/CheckEmailTest.php index 9d3c3161..5c543176 100644 --- a/tests/CheckEmailTest.php +++ b/tests/CheckEmailTest.php @@ -8,7 +8,7 @@ class CheckEmailTest extends \PHPUnit\Framework\TestCase public function testBasic() { $this->assertEquals('', check_email('test@example.com')); - $this->assertRegExp('/ not discoverable in DNS/', check_email('test@fishbeansblahblahblah' . uniqid() . '.com')); + $this->assertMatchesRegularExpression('/ not discoverable in DNS/', check_email('test@fishbeansblahblahblah' . uniqid() . '.com')); } } diff --git a/tests/CreatePageBrowserTest.php b/tests/CreatePageBrowserTest.php index 70cd4feb..3a4aa405 100644 --- a/tests/CreatePageBrowserTest.php +++ b/tests/CreatePageBrowserTest.php @@ -43,7 +43,7 @@ class CreatePageBrowserTest extends \PHPUnit\Framework\TestCase $b = create_page_browser('mailbox.username', 'FROM mailbox WHERE 1 = 1'); $this->assertEquals(10, sizeof($b)); foreach ($b as $range) { - $this->assertRegExp('/[\w]{2}\-[\w]{2}/', $range); + $this->assertMatchesRegularExpression('/[\w]{2}\-[\w]{2}/', $range); } $this->assertNotEmpty($b); } diff --git a/tests/PacryptTest.php b/tests/PacryptTest.php index f63b4a24..aac8be39 100644 --- a/tests/PacryptTest.php +++ b/tests/PacryptTest.php @@ -170,7 +170,7 @@ class PaCryptTest extends \PHPUnit\Framework\TestCase $this->assertEquals($enc, _pacrypt_php_crypt($password, $enc)); - $this->assertRegExp('/^\{SHA256-CRYPT\}/', $enc); + $this->assertMatchesRegularExpression('/^\{SHA256-CRYPT\}/', $enc); $this->assertGreaterThan(20, strlen($enc)); } @@ -303,7 +303,7 @@ class PaCryptTest extends \PHPUnit\Framework\TestCase $x = pacrypt('test123'); - $this->assertRegExp('/^\{SHA512-CRYPT\.B64/', $x); + $this->assertMatchesRegularExpression('/^\{SHA512-CRYPT\.B64/', $x); $this->assertTrue(strlen($x) > 50); $this->assertEquals($x, pacrypt('test123', $x));