Permalink
Browse files

added unit tests for this

  • Loading branch information...
1 parent bd5c79a commit ad97e340ec7a0b054c8d922afc6eefa81728ac5e Nicholas Eden committed Sep 6, 2013
Showing with 8 additions and 0 deletions.
  1. +8 −0 tests/TestingAidsTest.php
@@ -85,6 +85,14 @@ public function testParseRelativeWithTestValueSet()
$this->assertEquals('2013-08-31', Carbon::parse('last saturday')->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());
+
}

0 comments on commit ad97e34

Please sign in to comment.