filipgolonka/prophecy-datetime-approximate-token

DateTime approximate token allows you to write specs without 1second problem

0.3 2016-06-08 13:18 UTC

This package is not auto-updated.

Last update: 2024-04-13 16:48:49 UTC


README

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();