/** * Test loadFile function for non-existent file. * * @return void */ public function testLoadFileWithNonexistentFile() { $sourceFile = PHPCB_TEST_OUTPUT . '/doesNotExist'; if (file_exists($sourceFile)) { unlink(PHPCB_TEST_OUTPUT . '/doesNotExist'); } try { $this->ioHelper->loadFile($sourceFile); $this->fail(); } catch (\Exception $e) { // expected } }