public function test_time_is_cloned() { $time = new \DateTime(); $original = clone $time; $notification = new Generic('title', Icon::MOVIE_EVENT); $notification->setTime($time); $time->modify('+1 day'); $this->assertNotEquals($time, $notification->getTime()); $this->assertEquals($original, $notification->getTime()); }