You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$this->expectExceptionMessageMatches('#^Failed to read file ".+/Tests/invalid"\\: file_get_contents\\(.+/Tests/invalid\\)\\: Failed to open stream\\: No such file or directory$#');
1816
+
1817
+
$this->filesystem->readFile(__DIR__.'/invalid');
1818
+
}
1819
+
1820
+
publicfunctiontestReadDirectory()
1821
+
{
1822
+
$this->expectException(IOException::class);
1823
+
$this->expectExceptionMessageMatches('#^Failed to read file ".+/Tests"\\: File is a directory\\.$#');
1824
+
1825
+
$this->filesystem->readFile(__DIR__);
1826
+
}
1827
+
1828
+
publicfunctiontestReadUnreadableFile()
1829
+
{
1830
+
$this->markAsSkippedIfChmodIsMissing();
1831
+
1832
+
$filename = $this->workspace.'/unreadable.txt';
1833
+
file_put_contents($filename, 'Hello World');
1834
+
chmod($filename, 0o000);
1835
+
1836
+
$this->expectException(IOException::class);
1837
+
$this->expectExceptionMessageMatches('#^Failed to read file ".+/unreadable.txt"\\: file_get_contents\\(.+/unreadable.txt\\)\\: Failed to open stream\\: Permission denied$#');
0 commit comments