From d3582714518d02f67916325bdcef637a41ed787c Mon Sep 17 00:00:00 2001 From: El RIDO Date: Thu, 2 Mar 2017 19:44:43 +0100 Subject: [PATCH] making unit tests work with spans --- tpl/bootstrap.php | 4 ++-- tst/PrivateBinTest.php | 18 +++++++++--------- tst/ViewTest.php | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index 389423d..9fbc115 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -396,11 +396,11 @@ if ($FILEUPLOAD): - #', + '#]*id="errormessage"[^>]*>.*Paste does not exist, has expired or has been deleted\.assertRegExp( - '#]*id="errormessage"[^>]*>.*Paste does not exist[^<]*#', + '#]*id="errormessage"[^>]*>.*Paste does not exist, has expired or has been deleted\.assertRegExp( - '#]*id="status"[^>]*>.*Paste was properly deleted[^<]*#s', + '#]*id="status"[^>]*>.*Paste was properly deleted\.assertRegExp( - '#]*id="errormessage"[^>]*>.*Invalid paste ID\.#', + '#]*id="errormessage"[^>]*>.*Invalid paste ID\.assertRegExp( - '#]*id="errormessage"[^>]*>.*Paste does not exist[^<]*#', + '#]*id="errormessage"[^>]*>.*Paste does not exist, has expired or has been deleted\.assertRegExp( - '#]*id="errormessage"[^>]*>.*Wrong deletion token[^<]*#', + '#]*id="errormessage"[^>]*>.*Wrong deletion token\. Paste was not deleted\.assertRegExp( - '#]*id="errormessage"[^>]*>.*Paste does not exist[^<]*#', + '#]*id="errormessage"[^>]*>.*Paste does not exist, has expired or has been deleted\.assertRegExp( - '#]*id="status"[^>]*>.*Paste was properly deleted[^<]*#s', + '#]*id="status"[^>]*>.*Paste was properly deleted\.assertRegExp( - '#]+id="errormessage"[^>]*>.*' . self::$error . '#', + '#]+id="errormessage"[^>]*>.*' . self::$error . '