File tree 4 files changed +3
-12
lines changed
4 files changed +3
-12
lines changed Original file line number Diff line number Diff line change 25
25
"erusev/parsedown" : " ^1.7" ,
26
26
"league/flysystem" : " ^1.0.8" ,
27
27
"monolog/monolog" : " ^1.12" ,
28
- "nesbot/carbon" : " ^1.26.3 || ^ 2.0" ,
28
+ "nesbot/carbon" : " ^2.0" ,
29
29
"opis/closure" : " ^3.1" ,
30
30
"psr/container" : " ^1.0" ,
31
31
"psr/simple-cache" : " ^1.0" ,
Original file line number Diff line number Diff line change 19
19
"ext-mbstring" : " *" ,
20
20
"doctrine/inflector" : " ^1.1" ,
21
21
"illuminate/contracts" : " 5.9.*" ,
22
- "nesbot/carbon" : " ^1.26.3 || ^ 2.0"
22
+ "nesbot/carbon" : " ^2.0"
23
23
},
24
24
"conflict" : {
25
25
"tightenco/collect" : " <5.5.33"
Original file line number Diff line number Diff line change @@ -56,10 +56,6 @@ public function testUseClassName()
56
56
57
57
public function testCarbonImmutable ()
58
58
{
59
- if (! class_exists (CarbonImmutable::class)) {
60
- $ this ->markTestSkipped ('Test for Carbon 2 only ' );
61
- }
62
-
63
59
DateFactory::use (CarbonImmutable::class);
64
60
$ this ->assertSame (CarbonImmutable::class, get_class (Date::now ()));
65
61
DateFactory::use (Carbon::class);
Original file line number Diff line number Diff line change 5
5
use DateTime ;
6
6
use DateTimeInterface ;
7
7
use BadMethodCallException ;
8
- use Carbon \CarbonImmutable ;
9
8
use Illuminate \Support \Carbon ;
10
9
use PHPUnit \Framework \TestCase ;
11
10
use Carbon \Carbon as BaseCarbon ;
@@ -87,11 +86,7 @@ public function testCarbonAllowsCustomSerializer()
87
86
88
87
public function testCarbonCanSerializeToJson ()
89
88
{
90
- $ this ->assertSame (class_exists (CarbonImmutable::class) ? '2017-06-27T13:14:15.000000Z ' : [
91
- 'date ' => '2017-06-27 13:14:15.000000 ' ,
92
- 'timezone_type ' => 3 ,
93
- 'timezone ' => 'UTC ' ,
94
- ], $ this ->now ->jsonSerialize ());
89
+ $ this ->assertSame ('2017-06-27T13:14:15.000000Z ' , $ this ->now ->jsonSerialize ());
95
90
}
96
91
97
92
public function testSetStateReturnsCorrectType ()
You can’t perform that action at this time.
0 commit comments