Skip to content

Commit

Permalink
added unit tests for this
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Eden authored and Nicholas Eden committed Sep 6, 2013
1 parent bd5c79a commit ad97e34
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/TestingAidsTest.php
Expand Up @@ -85,6 +85,14 @@ public function testParseRelativeWithTestValueSet()
$this->assertEquals('2013-08-31', Carbon::parse('last saturday')->toDateString()); $this->assertEquals('2013-08-31', Carbon::parse('last saturday')->toDateString());
$this->assertEquals('2013-08-25', Carbon::parse('last sunday')->toDateString()); $this->assertEquals('2013-08-25', Carbon::parse('last sunday')->toDateString());


$this->assertEquals('2013-09-02', Carbon::parse('this monday')->toDateString());
$this->assertEquals('2013-09-03', Carbon::parse('this tuesday')->toDateString());
$this->assertEquals('2013-09-04', Carbon::parse('this wednesday')->toDateString());
$this->assertEquals('2013-09-05', Carbon::parse('this thursday')->toDateString());
$this->assertEquals('2013-09-06', Carbon::parse('this friday')->toDateString());
$this->assertEquals('2013-09-07', Carbon::parse('this saturday')->toDateString());
$this->assertEquals('2013-09-01', Carbon::parse('this sunday')->toDateString());





} }
Expand Down

0 comments on commit ad97e34

Please sign in to comment.