File tree Expand file tree Collapse file tree 4 files changed +6
-19
lines changed Expand file tree Collapse file tree 4 files changed +6
-19
lines changed Original file line number Diff line number Diff line change 11
11
strategy :
12
12
fail-fast : true
13
13
matrix :
14
- php : [ "8.1", "8.2" ]
14
+ php : [ "8.1", "8.2", "8.3" ]
15
15
16
16
name : PHP ${{ matrix.php }}
17
17
Original file line number Diff line number Diff line change 45
45
"archtechx/enums" : " ^0.3.2"
46
46
},
47
47
"require-dev" : {
48
- "illuminate/contracts" : " ^10.14" ,
48
+ "illuminate/contracts" : " ^10.14 || ^11.0 " ,
49
49
"pestphp/pest" : " ^2.8" ,
50
- "symfony/var-dumper" : " ^6.3"
50
+ "symfony/var-dumper" : " ^6.3 || ^7.0 "
51
51
},
52
52
"suggest" : {
53
53
"dragon-code/translation-set" : " Translation of validation rules into 78 localizations for Laravel Framework"
Original file line number Diff line number Diff line change 11
11
|
12
12
*/
13
13
14
- /*
15
- |--------------------------------------------------------------------------
16
- | Expectations
17
- |--------------------------------------------------------------------------
18
- |
19
- | When you're writing tests, you often need to check that values meet certain conditions. The
20
- | "expect()" function gives you access to a set of "expectations" methods that you can use
21
- | to assert different things. Of course, you may extend the Expectation API at any time.
22
- |
23
- */
24
-
25
14
use DragonCode \CardNumber \CardNumber ;
26
15
use DragonCode \CardNumber \Enums \CardType ;
27
16
use DragonCode \CardNumber \Factories \Factory ;
28
17
use DragonCode \CardNumber \Formatters \DefaultFormatter ;
29
18
use DragonCode \CardNumber \Formatters \Formatter ;
30
19
use DragonCode \CardNumber \Laravel \Validation \Rules \CardNumberRule ;
31
20
32
- expect ()->extend ('toBeOne ' , fn () => $ this ->toBe (1 ));
33
-
34
21
/*
35
22
|--------------------------------------------------------------------------
36
23
| Functions
Original file line number Diff line number Diff line change 14
14
15
15
$ year = date ('y ' );
16
16
17
- generatedEquals ($ factory1 , $ year . '0-4001-2348 ' , $ formatter );
18
- generatedEquals ($ factory2 , $ year . '0-3012-3451 ' , $ formatter );
19
- generatedEquals ($ factory3 , $ year . '0-1123-4566 ' , $ formatter );
17
+ generatedEquals ($ factory1 , $ year . '0-4001-2346 ' , $ formatter );
18
+ generatedEquals ($ factory2 , $ year . '0-3012-3459 ' , $ formatter );
19
+ generatedEquals ($ factory3 , $ year . '0-1123-4564 ' , $ formatter );
20
20
});
You can’t perform that action at this time.
0 commit comments