public function testGitDiff() { $git = $this->getWorkingCopy(); file_put_contents(self::WORKING_DIR . '/change.me', "changed\n"); $output = (string) $git->diff(); $this->assertTrue(strpos($output, 'diff --git a/change.me b/change.me') === 0); }