File tree Expand file tree Collapse file tree 5 files changed +63
-6
lines changed Expand file tree Collapse file tree 5 files changed +63
-6
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,14 @@ jobs:
105105          - php : 8.1 
106106            laravel : 10.* 
107107            phpunit : ~9.0 
108- 
108+           #  Laravel 11.x
109+           - php : 8.2 
110+             laravel : 11.* 
111+             phpunit : ~10.5 
112+           - php : 8.3 
113+             laravel : 11.* 
114+             phpunit : ~10.5 
115+             
109116    name : Laravel${{ matrix.laravel }}-PHP${{ matrix.php }} 
110117
111118    steps :
@@ -130,8 +137,13 @@ jobs:
130137          composer install --prefer-dist --no-progress --no-suggest 
131138
132139       - name : Run test suite 
140+         if : matrix.laravel != '11.*' 
133141        run : ./vendor/bin/phpunit -v 
134142
143+       - name : Run test suite laravel 11 
144+         if : matrix.laravel == '11.*' 
145+         run : ./vendor/bin/phpunit -c phpunit.10.xml 
146+ 
135147      - name : Run Coveralls 
136148        env :
137149          COVERALLS_REPO_TOKEN : ${{ secrets.GITHUB_TOKEN }} 
Original file line number Diff line number Diff line change 2121    "license" : " Apache-2.0"  ,
2222    "require" : {
2323        "php" : " >=7.1.0"  ,
24-         "illuminate/support" : " ~5.5|~6.0|~7.0|~8.0|~9.0|~10.0"  ,
25-         "illuminate/database" : " ~5.5|~6.0|~7.0|~8.0|~9.0|~10.0"  ,
26-         "illuminate/console" : " ~5.5|~6.0|~7.0|~8.0|~9.0|~10.0"  ,
24+         "illuminate/support" : " ~5.5|~6.0|~7.0|~8.0|~9.0|~10.0|~11.0 "  ,
25+         "illuminate/database" : " ~5.5|~6.0|~7.0|~8.0|~9.0|~10.0|~11.0 "  ,
26+         "illuminate/console" : " ~5.5|~6.0|~7.0|~8.0|~9.0|~10.0|~11.0 "  ,
2727        "casbin/casbin" : " ~3.1"  ,
2828        "casbin/psr3-bridge" : " ^1.1" 
2929    },
3030    "require-dev" : {
31-         "phpunit/phpunit" : " ~7.0|~8.0|~9.0"  ,
31+         "phpunit/phpunit" : " ~7.0|~8.0|~9.0|~10.5 "  ,
3232        "php-coveralls/php-coveralls" : " ^2.4"  ,
3333        "mockery/mockery" : " ^1.0"  ,
34-         "laravel/laravel" : " ~5.5|~6.0|~7.0|~8.0|~9.0|~10.0" 
34+         "laravel/laravel" : " ~5.5|~6.0|~7.0|~8.0|~9.0|~10.0|~11.0 " 
3535    },
3636    "autoload" : {
3737        "psr-4" : {
Original file line number Diff line number Diff line change 1+ <?xml  version =" 1.0"  encoding =" UTF-8"  ?>
2+ <phpunit  xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"   
3+     backupGlobals =" false"   
4+     bootstrap =" vendor/autoload.php"   
5+     colors =" true"   
6+     processIsolation =" false"   
7+     stopOnFailure =" false"   
8+     xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/10.0/phpunit.xsd"  >
9+     <testsuites >
10+         <testsuite  name =" Application Test Suite"  >
11+             <directory >./tests/</directory >
12+         </testsuite >
13+     </testsuites >
14+ 
15+     <coverage  includeUncoveredFiles =" true" 
16+           pathCoverage =" false" 
17+           ignoreDeprecatedCodeUnits =" true" 
18+           disableCodeCoverageIgnore =" true"  >
19+         <report >
20+             <clover  outputFile =" build/logs/clover.xml"  />
21+             <html  outputDirectory =" build/html"   lowUpperBound =" 50"   highLowerBound =" 90"  />
22+         </report >
23+     </coverage >
24+ 
25+     <source >
26+         <include >
27+             <directory >./src</directory >
28+         </include >
29+     </source >
30+ 
31+     <php >
32+         <env  name =" APP_ENV"   value =" testing"  />
33+         <env  name =" BCRYPT_ROUNDS"   value =" 4"  />
34+         <env  name =" CACHE_DRIVER"   value =" array"  />
35+         <env  name =" MAIL_DRIVER"   value =" array"  />
36+         <env  name =" QUEUE_CONNECTION"   value =" sync"  />
37+         <env  name =" SESSION_DRIVER"   value =" array"  />
38+ 
39+         <env  name =" DB_DATABASE"   value =" lauthz"  />
40+         <env  name =" DB_USERNAME"   value =" root"  />
41+     </php >
42+ </phpunit >
Original file line number Diff line number Diff line change 1616            <directory  suffix =" .php"  >./src</directory >
1717        </whitelist >
1818    </filter >
19+ 
1920    <logging >
2021        <log  type =" coverage-clover"   target =" build/logs/clover.xml"  />
2122        <log  type =" coverage-html"   target =" build/html"  />
2223    </logging >
24+ 
2325    <php >
2426        <env  name =" APP_ENV"   value =" testing"  />
2527        <env  name =" BCRYPT_ROUNDS"   value =" 4"  />
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ protected function initConfig()
4646        $ this  ->app ['config ' ]->set ('database.default ' , 'mysql ' );
4747        $ this  ->app ['config ' ]->set ('database.connections.mysql.charset ' , 'utf8 ' );
4848        $ this  ->app ['config ' ]->set ('database.connections.mysql.collation ' , 'utf8_unicode_ci ' );
49+         $ this  ->app ['config ' ]->set ('cache.default ' , 'array ' );
4950        // $app['config']->set('lauthz.log.enabled', true); 
5051    }
5152
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments