]*id="errormessage"[^>]*>.*Wrong deletion token\. Paste was not deleted\.#',
$content,
'outputs delete error correctly'
);
@@ -1067,7 +1067,7 @@ class PrivateBinTest extends PHPUnit_Framework_TestCase
$content = ob_get_contents();
ob_end_clean();
$this->assertRegExp(
- '#
]*id="errormessage"[^>]*>.*Paste does not exist, has expired or has been deleted\.#',
$content,
'outputs error correctly'
);
@@ -1091,7 +1091,7 @@ class PrivateBinTest extends PHPUnit_Framework_TestCase
$content = ob_get_contents();
ob_end_clean();
$this->assertRegExp(
- '#
]*id="status"[^>]*>.*Paste was properly deleted[^<]*
#s',
+ '#
]*id="status"[^>]*>.*Paste was properly deleted\.#s',
$content,
'outputs deleted status correctly'
);
diff --git a/tst/ViewTest.php b/tst/ViewTest.php
index fb658f1..9f9361b 100644
--- a/tst/ViewTest.php
+++ b/tst/ViewTest.php
@@ -104,7 +104,7 @@ class ViewTest extends PHPUnit_Framework_TestCase
$template . ': outputs data correctly'
);
$this->assertRegExp(
- '#
]+id="errormessage"[^>]*>.*' . self::$error . '
#',
+ '#
]+id="errormessage"[^>]*>.*' . self::$error . '#',
$content,
$template . ': outputs error correctly'
);