File tree Expand file tree Collapse file tree 5 files changed +12
-10
lines changed Expand file tree Collapse file tree 5 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 11language : php
22
33php :
4- - 7.0
54 - 7.1
5+ - 7.2
6+ - 7.3
67
78before_script :
89 - curl -s http://getcomposer.org/installer | php
910 - php composer.phar install --dev
1011
11- script : phpunit
12+ script : php ./vendor/bin/ phpunit
Original file line number Diff line number Diff line change 1919 }
2020 ],
2121 "require" : {
22- "php" : " ^7.0" ,
23- "illuminate/support" : " ~5.0" ,
24- "illuminate/console" : " ~5.0"
22+ "php" : " ^7.1" ,
23+ "illuminate/support" : " ~5.5|^6.0" ,
24+ "illuminate/console" : " ~5.5|^6.0" ,
25+ "vlucas/phpdotenv" : " ^3.5"
2526 },
2627 "suggest" : {
2728 "geoip2/geoip2" : " Required to use the MaxMind database or web service with GeoIP (~2.1)." ,
2829 "monolog/monolog" : " Allows for storing location not found errors to the log"
2930 },
3031 "require-dev" : {
31- "phpunit/phpunit" : " ^4.8 " ,
32+ "phpunit/phpunit" : " ^7.0 " ,
3233 "mockery/mockery" : " ^0.9.4" ,
3334 "geoip2/geoip2" : " ~2.1"
3435 },
Original file line number Diff line number Diff line change 88 convertWarningsToExceptions =" true"
99 processIsolation =" false"
1010 stopOnFailure =" false"
11- syntaxCheck =" false"
1211 verbose =" true"
1312>
1413 <testsuites >
Original file line number Diff line number Diff line change 22
33namespace Torann \GeoIP ;
44
5+ use Illuminate \Support \Str ;
56use Illuminate \Support \ServiceProvider ;
67
78class GeoIPServiceProvider extends ServiceProvider
@@ -74,6 +75,6 @@ public function registerGeoIpCommands()
7475 */
7576 protected function isLumen ()
7677 {
77- return str_contains ($ this ->app ->version (), 'Lumen ' ) === true ;
78+ return Str:: contains ($ this ->app ->version (), 'Lumen ' ) === true ;
7879 }
7980}
Original file line number Diff line number Diff line change @@ -9,12 +9,12 @@ class TestCase extends PHPUnitTestCase
99{
1010 public static $ functions ;
1111
12- public function setUp ()
12+ public function setUp (): void
1313 {
1414 self ::$ functions = Mockery::mock ();
1515 }
1616
17- public function tearDown ()
17+ public function tearDown (): void
1818 {
1919 Mockery::close ();
2020 }
You can’t perform that action at this time.
0 commit comments