saveToFile($estimator, $filepath); $restored = $modelManager->restoreFromFile($filepath); $this->assertEquals($estimator, $restored); } /** * @expectedException \Phpml\Exception\FileException */ public function testRestoreWrongFile() { $filepath = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'unexisting'; $modelManager = new ModelManager(); $modelManager->restoreFromFile($filepath); } }