filipgolonka/prophecy-datetime-approximate-token

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

Maintainers

Package info

github.com/filipgolonka/prophecy-datetime-approximate-token

pkg:composer/filipgolonka/prophecy-datetime-approximate-token

Statistics

Installs: 14 573

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

0.3 2016-06-08 13:18 UTC

This package is not auto-updated.

Last update: 2026-03-01 03:47:59 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();