@@ -149,8 +149,8 @@ public function test_readonly_filesystem_filedir() {
149
149
->chown (\org \bovigo \vfs \vfsStream::OWNER_USER_2 );
150
150
151
151
// This should generate an exception.
152
- $ this ->setExpectedExceptionRegexp ('file_exception ' ,
153
- '/ Can not create local file pool directories, please verify permissions in dataroot./ ' );
152
+ $ this ->setExpectedException ('file_exception ' ,
153
+ 'Can not create local file pool directories, please verify permissions in dataroot. ' );
154
154
155
155
new file_system_filedir ();
156
156
}
@@ -170,8 +170,8 @@ public function test_readonly_filesystem_trashdir() {
170
170
->chown (\org \bovigo \vfs \vfsStream::OWNER_USER_2 );
171
171
172
172
// This should generate an exception.
173
- $ this ->setExpectedExceptionRegexp ('file_exception ' ,
174
- '/ Can not create local file pool directories, please verify permissions in dataroot./ ' );
173
+ $ this ->setExpectedException ('file_exception ' ,
174
+ 'Can not create local file pool directories, please verify permissions in dataroot. ' );
175
175
176
176
new file_system_filedir ();
177
177
}
@@ -693,8 +693,8 @@ public function test_add_file_from_path_file_unavailable() {
693
693
// Setup the filedir.
694
694
$ vfileroot = $ this ->setup_vfile_root ();
695
695
696
- $ this ->setExpectedExceptionRegexp ('file_exception ' ,
697
- '/ Cannot read file\ . Either the file does not exist or there is a permission problem\./ ' );
696
+ $ this ->setExpectedException ('file_exception ' ,
697
+ 'Cannot read file. Either the file does not exist or there is a permission problem. ' );
698
698
699
699
$ fs = new file_system_filedir ();
700
700
$ fs ->add_file_from_path (\org \bovigo \vfs \vfsStream::url ('filedir/file ' ));
0 commit comments