public function testFileIsNotBackedUp() { $this->fs->expects($this->once())->method('exists')->with($this->yamlFile)->will($this->returnValue(true)); $this->fs->expects($this->never())->method('copy'); $this->fs->expects($this->once())->method('dumpFile')->with($this->phpFile, $this->php); $this->converter->convertFile($this->yamlFile, false); }