Skip to content

Commit 35c5d35

Browse files
committed
Updating tests
1 parent ce030dd commit 35c5d35

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Structs are php classes that make the use of the ```Structure``` trait. The trai
2222
namespace App\Structs;
2323

2424
use Angle\Structure\Structure;
25+
use Carbon\Carbon;
2526

2627
class CarStruct
2728
{
@@ -32,7 +33,7 @@ class CarStruct
3233
public $mark = '';
3334
public $range = 0;
3435
public $power = 0.0;
35-
public $createdAt = 'Carbon\Carbon';
36+
public $createdAt = Carbon::class;
3637
}
3738
```
3839

tests/StructureTest.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?php
22

3-
use PHPUnit\Framework\TestCase;
43
use Angle\Structure\Structure;
4+
use Carbon\Carbon;
55
use InvalidArgumentException as Exception;
6+
use PHPUnit\Framework\TestCase;
67

78
class Transaction
89
{
@@ -12,7 +13,7 @@ class Transaction
1213
public $hash = '';
1314
public $success = false;
1415
public $amount = 0.0;
15-
public $time = 'Carbon\Carbon';
16+
public $time = Carbon::class;
1617
}
1718

1819
final class StructureTest extends TestCase

0 commit comments

Comments
 (0)