/** */ public function testGetDate() { $date = new \DateTime(); $subject = LocalDate::raw($date); $this->assertNotSame($date, $subject->getDate(), 'getDate() must return a cloned date time object'); $this->assertEquals($date, $subject->getDate(), 'The returned date must have the same value'); }