diff --git a/tests/question_test.php b/tests/question_test.php index 9dcf4d7..f9f76ad 100644 --- a/tests/question_test.php +++ b/tests/question_test.php @@ -110,9 +110,9 @@ public function test_get_question_summary() { $qsummary = $mc->get_question_summary(); - $this->assertRegExp('/' . preg_quote($mc->questiontext) . '/', $qsummary); + $this->assertMatchesRegularExpression('/' . preg_quote($mc->questiontext) . '/', $qsummary); foreach ($mc->answers as $answer) { - $this->assertRegExp('/' . preg_quote($answer->answer) . '/', $qsummary); + $this->assertMatchesRegularExpression('/' . preg_quote($answer->answer) . '/', $qsummary); } }