Skip to content

filipgolonka/prophecy-datetime-approximate-token

Repository files navigation

prophecy-datetime-approximate-token

Installation

composer require filipgolonka/prophecy-datetime-approximate-token

Usage

Inside some example:

       $collaborator->methodAcceptedDatetime(new DatetimeApproximateToken(new \DateTime()))->shouldBeCalled();

You can also use this token for collaborator method accepted date string:

       $collaborator->methodAcceptedDateString(new DatetimeApproximateToken(new \DateTime()))->shouldBeCalled();