/** * @test */ public function getCurrentDateTimeReturnsGivenValueIfValueSet() { $this->subject->setCurrentDateTime(new \DateTime('01.01.2014')); $this->assertEquals(new \DateTime('01.01.2014'), $this->subject->getCurrentDateTime()); }