public function test_getTo_returns_a_new_carbon_instance_with_correct_value() { $range = new DateRange(Carbon::today()->subSecond(), $before = Carbon::today()->endOfDay()->addSecond()); $this->assertEquals(Carbon::today()->endOfDay(), $range->getTo()); $this->assertTrue($before !== $range->getTo()); }