/** * @covers Fuel\Common\Date::add * @group Common */ public function testAdd() { $expected = 'Sun Dec 22 23:23:48 2013'; $this->instance->add(10); $this->assertEquals((string) $this->instance, $expected); $expected = 'Sun Dec 22 23:23:38 2013'; $this->instance->add(-10); $this->assertEquals((string) $this->instance, $expected); $er = error_reporting(0); $result = $this->instance->add('invalid'); $this->assertFalse($result); error_reporting($er); }