summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Carbon/GettersTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Carbon/GettersTest.php b/tests/Carbon/GettersTest.php
index fa5ed12..10503f4 100644
--- a/tests/Carbon/GettersTest.php
+++ b/tests/Carbon/GettersTest.php
@@ -148,7 +148,7 @@ class GettersTest extends AbstractTestCase
*/
public function testQuarterFirstOfMonth($month, $quarter)
{
- $c = Carbon::create(2015, $month)->startOfMonth();
+ $c = Carbon::create(2015, $month, 1)->startOfMonth();
$this->assertSame($quarter, $c->quarter);
}
@@ -172,7 +172,7 @@ class GettersTest extends AbstractTestCase
*/
public function testQuarterLastOfMonth($month, $quarter)
{
- $c = Carbon::create(2015, $month)->endOfMonth();
+ $c = Carbon::create(2015, $month, 1)->endOfMonth();
$this->assertSame($quarter, $c->quarter);
}