Skip to content

Commit b2c75c4

Browse files
Convert expectException calls to setExpectedException
Also known as patch B
1 parent 175bd1f commit b2c75c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/filestorage/tests/file_system_test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ public function test_get_content_file_handle_invalid() {
925925
$fs->method('get_remote_path_from_storedfile')
926926
->willReturn(__FILE__);
927927

928-
$this->expectException('coding_exception', 'Unexpected file handle type');
928+
$this->setExpectedException('coding_exception', 'Unexpected file handle type');
929929
$fs->get_content_file_handle($file, -1);
930930
}
931931

0 commit comments

Comments
 (0)