/** * Try to merge with a non-compatible file. * * @return void */ public function testMergeWithDifferentFile() { try { $this->file->mergeWith(new File('/the/wrong/file/name.php')); $this->fail(); } catch (\InvalidArgumentException $e) { // Expected } }