Skip to content
Snippets Groups Projects
Commit 036f7634 authored by Phy's avatar Phy
Browse files

use expectException instead of setExpectedException for PHPUnit

parent 1f1591cd
No related branches found
No related tags found
No related merge requests found
......@@ -109,7 +109,7 @@ class io_replaceinfile_test extends DokuWikiTest {
} else {
$expect = 'PHPUnit_Framework_Error_Warning'; // PHPUnit 5
}
$this->setExpectedException($expect);
$this->expectException($expect);
/* The empty $oldline parameter should be caught before the file doesn't exist test. */
$this->assertFalse(io_replaceInFile(TMP_DIR.'/not_existing_file.txt', '', '', false, 0));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment