2017 © Pedro Peláez
 

library datetime-codeception-module

Testing helpers for date/time comparisons in your Codeception acceptance tests.

image

nathanmac/datetime-codeception-module

Testing helpers for date/time comparisons in your Codeception acceptance tests.

  • Wednesday, October 29, 2014
  • by nathanmac
  • Repository
  • 1 Watchers
  • 2 Stars
  • 20,152 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 14 % Grown

The README.md

Codeception Date/Time Helpers Module

Build Status, (*1)

Testing helpers for date/time comparisons in your Codeception acceptance tests., (*2)

Installation

Begin by installing this package through Composer. Edit your project's composer.json file to require nathanmac/datetime-codeception-module., (*3)

{
    "require-dev": {
        "codeception/codeception": "*",
        "nathanmac/datetime-codeception-module": "~1.0"
    }
}

Next, update Composer from the Terminal:, (*4)

composer update

Then enable it in your suite configuration with the following settings, (*5)

Examples

Example Configuration

 modules:
   enabled: [Date, Time]

Actions

Date Module

seeDateIsToday( string $date )

See date is today's date., (*6)

dontSeeDateIsToday( string $date )

See date is not today's date., (*7)

seeDateIsTomorrow( string $date )

See date is tomorrows date., (*8)

dontSeeDateIsTomorrow( string $date )

See date is not tomorrows date., (*9)

seeDateWasYesterday( string $date )

See date was yesterdays date., (*10)

dontSeeDateWasYesterday( string $date )

See date was not yesterdays date., (*11)

seeDateIsInDays( string $date, integer $days )

See date is in a given number of days., (*12)

dontSeeDateIsInDays( string $date, integer $days )

See date is not in a given number of days., (*13)

seeDateWasInDays( string $date, integer $days )

See date was in a given number of days., (*14)

dontSeeDateWasInDays( string $date, integer $days )

See date was in a given number of days., (*15)

seeDateIsNextWeek( string $date )

See date is next week., (*16)

dontSeeDateIsNextWeek( string $date )

See date is not next week., (*17)

seeDateIsInWeeks( string $date, integer $weeks )

See date is in a given number of weeks., (*18)

dontSeeDateIsInWeeks( string $date, integer $weeks )

See date is in a given number of weeks., (*19)

seeDateWasLastWeek( string $date )

See date was last week., (*20)

dontSeeDateWasLastWeek( string $date )

See date was not last week., (*21)

seeDateWasInWeeks( string $date, integer $weeks )

See date was in a given number of weeks., (*22)

dontSeeDateWasInWeeks( string $date, integer $weeks )

See date was in a given number of weeks., (*23)

seeDateIsNextMonth( string $date )

See date is next month., (*24)

dontSeeDateIsNextMonth( string $date )

See date is not next month., (*25)

seeDateIsInMonths( string $date, integer $months )

See date is in a given number of months., (*26)

dontSeeDateIsInMonths( string $date, integer $months )

See date is not in a given number of months., (*27)

seeDateWasLastMonth( string $date )

See date was last month., (*28)

dontSeeDateWasLastMonth( string $date )

See date was not last month., (*29)

seeDateWasInMonths( string $date, integer $months )

See date was in a given number of months., (*30)

dontSeeDateWasInMonths( string $date, integer $months )

See date was not in a given number of years., (*31)

seeDateIsNextYear( string $date )

See date is next year., (*32)

dontSeeDateIsNextYear( string $date )

See date is not next year., (*33)

seeDateIsInYears( string $date, integer $years )

See date is in a given number of years., (*34)

dontSeeDateIsInYears( string $date, integer $years )

See date is in not a given number of years., (*35)

seeDateWasLastYear( string $date )

See date was last year., (*36)

dontSeeDateWasLastYear( string $date )

See date was not last year., (*37)

seeDateWasInYears( string $date, integer $years )

See date was in a given number of years., (*38)

dontSeeDateWasInYears( string $date, integer $years )

See date was not in a given number of years., (*39)

seeDateIsMonday( string $date )

See date is a Monday., (*40)

dontSeeDateIsMonday( string $date )

See date is not a Monday., (*41)

seeDateIsTuesday( string $date )

See date is a Tuesday., (*42)

dontSeeDateIsTuesday( string $date )

See date is not a Tuesday., (*43)

seeDateIsWednesday( string $date )

See date is a Wednesday., (*44)

dontSeeDateIsWednesday( string $date )

See date is not a Wednesday., (*45)

seeDateIsThursday( string $date )

See date is a Thursday., (*46)

dontSeeDateIsThursday( string $date )

See date is not a Thursday., (*47)

seeDateIsFriday( string $date )

See date is a Friday, (*48)

dontSeeDateIsFriday( string $date )

See date is not a Friday., (*49)

seeDateIsSaturday( string $date )

See date is a Saturday., (*50)

dontSeeDateIsSaturday( string $date )

See date is not a Saturday., (*51)

seeDateIsSunday( string $date )

See date is a Sunday., (*52)

dontSeeDateIsSunday( string $date )

See date is not a Sunday., (*53)

seeDateIsWeekday( string $date )

See date is a weekday., (*54)

dontSeeDateIsWeekday( string $date )

See date is not a weekday., (*55)

seeDateIsWeekend( string $date )

See date is a weekend., (*56)

dontSeeDateIsWeekend( string $date )

See date is not a weekend., (*57)

seeDateMatches( string $d1, string $d2 )

See that two dates match., (*58)

dontSeeDateMatches( string $d1, string $d2 )

See that two dates don't match., (*59)

seeDateInFuture( string $date )

See the date is in the future., (*60)

dontSeeDateInFuture( string $date )

See the date is not in the future., (*61)

seeDateInPast( string $date )

See the date is in the past., (*62)

dontSeeDateInPast( string $date )

See the date is not in the past., (*63)

seeDateInFirstQuarter( string $date )

See the date is within the first quarter of the year., (*64)

dontSeeDateInFirstQuarter( string $date )

See the date is not within the first quarter of the year., (*65)

seeDateInSecondQuarter( string $date )

See the date is within the second quarter of the year., (*66)

donSeeDateInSecondQuarter( string $date )

See the date is not within the second quarter of the year., (*67)

seeDateInThirdQuarter( string $date )

See the date is within the third quarter of the year., (*68)

dontSeeDateInThirdQuarter( string $date )

See the date is not within the third quarter of the year., (*69)

seeDateInFourthQuarter( string $date )

See the date is within the forth quarter of the year., (*70)

dontSeeDateInFourthQuarter( string $date )

See the date is not within the forth quarter of the year., (*71)

seeDateInQuarter( string $date, integer $quarter )

See the date is within a particular quarter of the year., (*72)

dontSeeDateInQuarter( string $date, integer $quarter )

See the date is not within a particular quarter of the year., (*73)

seeDateIsLeapYear( string $date )

See the date is a leap year., (*74)

dontSeeDateIsLeapYear( string $date )

See the date is not a leap year., (*75)

seeDayInWeek( string $date, integer $day )

See the date is a given day in the week., (*76)

dontSeeDayInWeek( string $date, integer $day )

See the date is not a given day in the week., (*77)

seeDayInMonth( string $date, integer $day )

See the date is a given day in the month., (*78)

dontSeeDayInMonth( string $date, integer $day )

See the date is not a given day in the month., (*79)

seeDayInYear( string $date, integer $day )

See the date is a given day in the year., (*80)

dontSeeDayInYear( string $date, integer $day )

See the date is not a given day in the year., (*81)

seeWeekInMonth( string $date, integer $week )

See the date is a not given week in the month., (*82)

dontSeeWeekInMonth( string $date, integer $week )

See the date is a not given week in the month., (*83)

seeWeekInYear( string $date, integer $week )

See the date is a given week in the year., (*84)

dontSeeWeekInYear( string $date, integer $week )

See the date is not a given week in the year., (*85)

seeMonthInYear( string $date, integer $month )

See the month in the year is a given value., (*86)

dontSeeMonthInYear( string $date, integer $month )

See the month in the year is not a given value., (*87)

Time Module

seeTimeIsInSecs( string $time, integer $seconds )

See time is in a given number of seconds., (*88)

dontSeeTimeIsInSecs( string $time, integer $seconds )

See time is not in a given number of seconds., (*89)

seeTimeWasInSecs( string $time, integer $seconds )

See time was in a given number of seconds., (*90)

dontSeeTimeWasInSecs( string $time, integer $seconds )

See time was not in a given number of seconds., (*91)

seeTimeIsInMins( string $time, integer $minutes )

See time is in a given number of minutes., (*92)

dontSeeTimeIsInMins( string $time, integer $minutes )

See time is not in a given number of minutes., (*93)

seeTimeWasInMins( string $time, integer $minutes )

See time was in a given number of minutes., (*94)

dontSeeTimeWasInMins( string $time, integer $minutes )

See time was not in a given number of minutes., (*95)

seeTimeIsInHours( string $time, integer $hours )

See time is in a given number of hours., (*96)

dontSeeTimeIsInHours( string $time, integer $hours )

See time is not in a given number of hours., (*97)

seeTimeWasInHours( string $time, integer $hours )

See time was in a given number of hours., (*98)

dontSeeTimeWasInHours( string $time, integer $hours )

See time was not in a given number of hours., (*99)

seeTimeInFuture( string $time )

See the time is in the future., (*100)

dontSeeTimeInFuture( string $time )

See the time is not in the future., (*101)

seeTimeInPast( string $time )

See the time is in the past., (*102)

dontSeeTimeInPast( string $time )

See the time is not in the past., (*103)

seeTimeMatches( string $t1, string $t2 )

See that two times match., (*104)

dontSeeTimeMatches( string $t1, string $t2 )

See that two times don't match., (*105)

License

Released under the same license as Codeception: MIT, (*106)

The Versions

29/10 2014

dev-master

9999999-dev

Testing helpers for date/time comparisons in your Codeception acceptance tests.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nathan Macnamara

29/10 2014

v1.2

1.2.0.0

Testing helpers for date/time comparisons in your Codeception acceptance tests.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nathan Macnamara

29/10 2014

v1.1

1.1.0.0

Testing helpers for date/time comparisons in your Codeception acceptance tests.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nathan Macnamara

29/10 2014

v1.0

1.0.0.0

Testing helpers for date/time comparisons in your Codeception acceptance tests.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nathan Macnamara