File tree Expand file tree Collapse file tree 5 files changed +80
-0
lines changed Expand file tree Collapse file tree 5 files changed +80
-0
lines changed Original file line number Diff line number Diff line change
1
+ language : php
2
+
3
+ sudo : false
4
+
5
+ git :
6
+ depth : 2
7
+
8
+ matrix :
9
+ include :
10
+ - php : 7.0
11
+ - php : 7.1
12
+ - php : nightly
13
+ fast_finish : true
14
+
15
+ cache :
16
+ directories :
17
+ - $HOME/.composer/cache
18
+
19
+ before_script :
20
+ - phpenv config-rm xdebug.ini || true
21
+ - travis_retry composer self-update
22
+ - travis_retry composer install --no-interaction
23
+
24
+ script :
25
+ - composer test
Original file line number Diff line number Diff line change 14
14
"Codecasts\\ Auth\\ JWT\\ " : " src/"
15
15
}
16
16
},
17
+ "autoload-dev" : {
18
+ "psr-4" : {
19
+ "Tests\\ " : " tests/"
20
+ }
21
+ },
17
22
"minimum-stability" : " stable" ,
18
23
"require" : {
19
24
"php" : " >=7.0.0" ,
20
25
"ext-openssl" : " *" ,
21
26
"lcobucci/jwt" : " ^3.2" ,
22
27
"illuminate/support" : " >=5.4.0"
28
+ },
29
+ "require-dev" : {
30
+ "orchestra/testbench" : " ^3.4" ,
31
+ "phpunit/phpunit" : " ^6.1" ,
32
+ "mockery/mockery" : " ^0.9.9"
23
33
}
24
34
}
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <phpunit backupGlobals =" false"
3
+ backupStaticAttributes =" false"
4
+ bootstrap =" vendor/autoload.php"
5
+ colors =" true"
6
+ convertErrorsToExceptions =" true"
7
+ convertNoticesToExceptions =" true"
8
+ convertWarningsToExceptions =" true"
9
+ processIsolation =" false"
10
+ stopOnFailure =" true"
11
+ syntaxCheck =" false" >
12
+ <testsuites >
13
+ <testsuite name =" LaravelJwt Test Suite" >
14
+ <directory >tests/</directory >
15
+ </testsuite >
16
+ </testsuites >
17
+ <filter >
18
+ <whitelist >
19
+ <directory suffix =" .php" >src/</directory >
20
+ </whitelist >
21
+ </filter >
22
+ </phpunit >
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Tests \Auth \Guard ;
4
+
5
+ use Tests \TestCase ;
6
+
7
+ class GuardTest extends TestCase
8
+ {
9
+
10
+ }
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Tests ;
4
+
5
+ use Codecasts \Auth \JWT \ServiceProvider ;
6
+
7
+ class TestCase extends \Orchestra \Testbench \TestCase
8
+ {
9
+ public function getPackageProviders ()
10
+ {
11
+ return [ServiceProvider::class, AuthService::class];
12
+ }
13
+ }
You can’t perform that action at this time.
0 commit comments