-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from ARCANEDEV/develop
Adding Laravel 8 support
- Loading branch information
Showing
13 changed files
with
42 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit backupGlobals="false" | ||
backupStaticAttributes="false" | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd" | ||
bootstrap="vendor/autoload.php" | ||
colors="true" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
processIsolation="false" | ||
stopOnFailure="false" | ||
> | ||
> | ||
<testsuites> | ||
<testsuite name="Application Test Suite"> | ||
<testsuite name="Package Test Suite"> | ||
<directory>./tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<filter> | ||
<whitelist> | ||
<directory suffix=".php">./src/</directory> | ||
</whitelist> | ||
</filter> | ||
<php> | ||
<env name="APP_ENV" value="testing"/> | ||
</php> | ||
<logging> | ||
<log type="coverage-clover" target="build/logs/clover.xml"/> | ||
<log type="coverage-text" target="build/logs/coverage.txt"/> | ||
<log type="coverage-html" target="build/logs/coverage"/> | ||
</logging> | ||
<coverage processUncoveredFiles="true"> | ||
<include> | ||
<directory suffix=".php">./src</directory> | ||
</include> | ||
<report> | ||
<clover outputFile="build/coverage/clover.xml"/> | ||
<html outputDirectory="build/coverage/html"/> | ||
<text outputFile="build/coverage/coverage.txt" showOnlySummary="true"/> | ||
</report> | ||
</coverage> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,15 +4,15 @@ | |
|
||
namespace Arcanedev\Agent; | ||
|
||
use Arcanedev\Agent\Contracts\{Agent as AgentContract, Detector}; | ||
use Arcanedev\Agent\Contracts\Agent as AgentContract; | ||
use Arcanedev\Agent\Contracts\Detector; | ||
use BadMethodCallException; | ||
use Illuminate\Contracts\Foundation\Application; | ||
use Illuminate\Http\Request; | ||
|
||
/** | ||
* Class Agent | ||
* | ||
* @package Arcanedev\Agent | ||
* @author ARCANEDEV <[email protected]> | ||
* | ||
* @method \Arcanedev\Agent\Detectors\DeviceDetector device() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ | |
/** | ||
* Class AgentServiceProvider | ||
* | ||
* @package Arcanedev\Agent | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class AgentServiceProvider extends PackageServiceProvider implements DeferrableProvider | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,6 @@ | |
/** | ||
* Interface Agent | ||
* | ||
* @package Arcanedev\Agent\Contracts | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
interface Agent | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,10 +7,9 @@ | |
use Illuminate\Http\Request; | ||
|
||
/** | ||
* Interface Detector | ||
* Interface Detector | ||
* | ||
* @package Arcanedev\Agent\Contracts | ||
* @author ARCANEDEV <[email protected]> | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
interface Detector | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ | |
/** | ||
* Class DeviceDetector | ||
* | ||
* @package Arcanedev\Agent\Detectors | ||
* @author ARCANEDEV <[email protected]> | ||
* | ||
* @mixin \DeviceDetector\DeviceDetector | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ | |
/** | ||
* Class LanguageDetector | ||
* | ||
* @package Arcanedev\Agent\Detectors | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class LanguageDetector implements Detector | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
<?php namespace Arcanedev\Agent\Tests; | ||
<?php | ||
|
||
use Illuminate\Contracts\Support\DeferrableProvider; | ||
declare(strict_types=1); | ||
|
||
namespace Arcanedev\Agent\Tests; | ||
|
||
/** | ||
* Class AgentServiceProviderTest | ||
* | ||
* @package Arcanedev\Agent\Tests | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class AgentServiceProviderTest extends TestCase | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,6 @@ | |
/** | ||
* Class AgentTest | ||
* | ||
* @package Arcanedev\Agent\Tests | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class AgentTest extends TestCase | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,6 @@ | |
/** | ||
* Class TestCase | ||
* | ||
* @package Arcanedev\Agent\Tests | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
abstract class TestCase extends BaseTestCase | ||
|