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