/** * @expectedException \PHPUnit_Framework_Error_Notice * @medium */ public function testAutomaticUpdatePlan() { $fileUtil = new FileUtil(); $file = tempnam($fileUtil->getTempDirectory(), 'bavtest'); touch($file, strtotime("-1 year")); $backend = new FileDataBackend($file); $updatePlan = new AutomaticUpdatePlan(); $this->assertTrue($updatePlan->isOutdated($backend)); $updatePlan->perform($backend); $this->assertFalse($updatePlan->isOutdated($backend)); }