/** * @expectedException \Symfony\Component\Filesystem\Exception\IOException */ public function testMkdirCreatesDirectoriesFails() { $basePath = $this->workspace . DIRECTORY_SEPARATOR; $dir = $basePath . '2'; file_put_contents($dir, ''); $this->filesystem->mkdir($dir); }