1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/15369] Fix tests

PHPBB3-15369
This commit is contained in:
Matt Friedman
2018-01-06 10:37:39 -08:00
committed by Marc Alexander
parent 18d4b7f358
commit 2753f8ccc8
2 changed files with 7 additions and 2 deletions

View File

@@ -95,7 +95,12 @@ class phpbb_test_case_helpers
break;
}
$this->expectedTriggerError = true;
$this->test_case->setExpectedException($exceptionName, (string) $message, $errno);
$this->test_case->expectException($exceptionName);
$this->test_case->expectExceptionCode($errno);
if ($message)
{
$this->test_case->expectExceptionMessage((string) $message);
}
}
public function makedirs($path)