/** * @depends testReturnsPingResponse * @param PingResponse $response */ public function testPutsLaunchKeyTimeFromResponseInThePingResponseWithUTC(PingResponse $response) { $expected = new \DateTime("2015-03-12 16:55:12", new \DateTimeZone("UTC")); $this->assertEquals($expected, $response->getLaunchKeyTime()); }
public function testGetLaunchKeyTime() { $launchKeyTime = new \DateTime("-10 minutes"); $response = new PingResponse($launchKeyTime, null, new \DateTime()); $this->assertSame($launchKeyTime, $response->getLaunchKeyTime()); }