Skip to content

Commit

Permalink
[ecampbell#32] update tests, remove deprecated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewhilton committed Mar 23, 2023
1 parent 704334d commit 20660a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/question_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 20660a0

Please sign in to comment.