/** * {@inheritdoc} */ public function getCreatedAt() { return new \DateTime($this->raw->getCreated()); }
public function it_returns_the_create_date_as_DateTime(Issue $issue) { $issue->getCreated()->shouldBeCalled()->willReturn('25.05.1981 13:37:42'); $this->getCreatedAt()->shouldHaveType('\\DateTime'); }