File tree 6 files changed +641
-0
lines changed
6 files changed +641
-0
lines changed Original file line number Diff line number Diff line change 1
1
.idea /
2
+ vendor /
3
+ build /
4
+ composer.lock
5
+ .phpunit.result.cache
Original file line number Diff line number Diff line change @@ -497,6 +497,14 @@ public function boot()
497
497
498
498
Further information on how to set up event listeners can be found on the [ official docs] ( https://laravel.com/docs/events ) .
499
499
500
+ ## Testing
501
+
502
+ Run the tests with:
503
+
504
+ ``` bash
505
+ composer test
506
+ ```
507
+
500
508
## TODO List
501
509
502
510
- Write unit tests
Original file line number Diff line number Diff line change 9
9
"ext-json" : " *"
10
10
},
11
11
"require-dev" : {
12
+ "phpunit/phpunit" : " ^9.5.4" ,
13
+ "orchestra/testbench" : " ^6.0" ,
14
+ "nunomaduro/collision" : " ^5.3" ,
12
15
"roave/security-advisories" : " dev-latest"
13
16
},
14
17
"license" : " MIT" ,
18
21
19
22
}
20
23
],
24
+ "scripts" : {
25
+ "test" : " ./vendor/bin/testbench package:test"
26
+ },
21
27
"autoload" : {
22
28
"psr-4" : {
23
29
"MarcReichel\\ IGDBLaravel\\ " : " src"
24
30
}
25
31
},
32
+ "autoload-dev" : {
33
+ "psr-4" : {
34
+ "MarcReichel\\ IGDBLaravel\\ Tests\\ " : " tests"
35
+ }
36
+ },
26
37
"extra" : {
27
38
"laravel" : {
28
39
"providers" : [
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <phpunit
3
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4
+ xsi : noNamespaceSchemaLocation =" vendor/phpunit/phpunit/phpunit.xsd"
5
+ backupGlobals =" false"
6
+ backupStaticAttributes =" false"
7
+ bootstrap =" vendor/autoload.php"
8
+ colors =" true"
9
+ convertErrorsToExceptions =" true"
10
+ convertNoticesToExceptions =" true"
11
+ convertWarningsToExceptions =" true"
12
+ processIsolation =" false"
13
+ stopOnFailure =" false"
14
+ executionOrder =" random"
15
+ failOnWarning =" true"
16
+ failOnRisky =" true"
17
+ failOnEmptyTestSuite =" true"
18
+ beStrictAboutOutputDuringTests =" true"
19
+ verbose =" true"
20
+ >
21
+ <testsuites >
22
+ <testsuite name =" IGDBLaravel Test Suite" >
23
+ <directory >tests</directory >
24
+ </testsuite >
25
+ </testsuites >
26
+ <coverage >
27
+ <include >
28
+ <directory suffix =" .php" >./src</directory >
29
+ </include >
30
+ <report >
31
+ <html outputDirectory =" build/coverage" />
32
+ <text outputFile =" build/coverage.txt" />
33
+ <clover outputFile =" build/logs/clover.xml" />
34
+ </report >
35
+ </coverage >
36
+ <logging >
37
+ <junit outputFile =" build/report.junit.xml" />
38
+ </logging >
39
+ </phpunit >
You can’t perform that action at this time.
0 commit comments