From ec3cabf60551be0c589b11fa5db8de302645988e Mon Sep 17 00:00:00 2001 From: Jean-Michel Vedrine Date: Thu, 1 Feb 2018 12:02:52 +0100 Subject: Correct exception test --- tests/parser_exception_test.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/parser_exception_test.php b/tests/parser_exception_test.php index 5a0d24e..7752768 100644 --- a/tests/parser_exception_test.php +++ b/tests/parser_exception_test.php @@ -54,7 +54,7 @@ class qtype_algebra_parser_exception_test extends advanced_testcase { */ public function test_parser_wrong_arguments_number() { $this->expectException('parser_exception'); - $this->expectExceptionMessage('Syntax Error: Operator '^' requires two arguments'); + $this->expectExceptionMessage("Syntax Error: Operator '^' requires two arguments"); $p = new qtype_algebra_parser; $expr = $p->parse('x^'); } @@ -72,9 +72,9 @@ class qtype_algebra_parser_exception_test extends advanced_testcase { /** * Operator missing one argument. */ - public function test_parser_invalid_minus() { + public function test_parser_wrong_arguments_number2() { $this->expectException('parser_exception'); - $this->expectExceptionMessage('Syntax Error: Operator '-' requires two arguments'); + $this->expectExceptionMessage("Syntax Error: Operator '-' requires two arguments"); $p = new qtype_algebra_parser; $expr = $p->parse('x-'); } -- cgit v1.2.3