aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Michel Vedrine <vedrine@vedrine.org>2018-02-01 12:02:52 +0100
committerJean-Michel Vedrine <vedrine@vedrine.org>2018-02-01 12:02:52 +0100
commitec3cabf60551be0c589b11fa5db8de302645988e (patch)
tree346d95d8080f8e2badb4891a0a2bc172f033c7ca
parentb5f2981cc1052390be01fb5d44760c9c59011aa0 (diff)
Correct exception test
-rw-r--r--tests/parser_exception_test.php6
1 files 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-');
}