public function testGetDateWithMinOffsetFromToday() { // to small offset $this->assertSame('2014-10-23', SepaUtilities::getDateWithMinOffsetFromToday('23.10.2014', 3, 'd.m.Y', '15.10.2014')); // to target and earliest date are equal $this->assertSame('2014-10-23', SepaUtilities::getDateWithMinOffsetFromToday('23.10.2014', 6, 'd.m.Y', '15.10.2014')); // to target < earliest date $this->assertSame('2014-10-27', SepaUtilities::getDateWithMinOffsetFromToday('23.10.2014', 8, 'd.m.Y', '15.10.2014')); // to target < earliest date $this->assertSame('2014-10-29', SepaUtilities::getDateWithMinOffsetFromToday('23.10.2014', 10, 'd.m.Y', '15.10.2014')); }