Skip to content

Commit

Permalink
Carbon 2 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kylekatarnls committed Aug 28, 2018
1 parent 7e25846 commit 1bf72ac
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/Cmixin/IlluminateCarbon2.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

namespace Tests\Cmixin;

use Carbon\Carbon as BaseCarbon;

class IlluminateCarbon extends BaseCarbon
{
}
4 changes: 4 additions & 0 deletions tests/Cmixin/IlluminateCarbonTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ protected function setUp()
self::markTestSkipped('IlluminateCarbon compatible only from PHP 5.5');
}

if (class_exists('Carbon\CarbonImmutable')) {
include_once __DIR__ . '/IlluminateCarbon2.php';
}

parent::setUp();
}
}

0 comments on commit 1bf72ac

Please sign in to comment.