Skip to content

Commit

Permalink
Revert "Copy over Agent functionality to allow Laravel 11 Support"
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaselia authored Apr 1, 2024
1 parent a1cee39 commit 9b8c7fd
Show file tree
Hide file tree
Showing 13 changed files with 70 additions and 740 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/vendor
/.phpunit.cache
composer.lock
.phpunit.result.cache
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
"illuminate/collections": "^8.0|^9.0|^10.0|^11.0",
"illuminate/http": "^8.0|^9.0|^10.0|^11.0",
"illuminate/view": "^8.0|^9.0|^10.0|^11.0",
"mobiledetect/mobiledetectlib": "^2.7.6",
"jaybizzle/crawler-detect": "^1.2"
"jenssegers/agent": "^2.6"
},
"autoload": {
"psr-4": {
Expand Down
6 changes: 3 additions & 3 deletions database/factories/PageViewFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ public function definition()
{
return [
'session' => $this->faker->unique()->md5(),
'uri' => '/'.$this->faker->unique()->word(),
'source' => 'example.com',
'uri' => '/'.$this->faker->unique()->word(),
'source' => 'example.com',
'country' => 'us',
'browser' => 'chrome',
'device' => 'desktop',
'device' => 'desktop',
];
}
}
19 changes: 11 additions & 8 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,21 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
bootstrap="vendor/autoload.php"
backupGlobals="false"
backupStaticAttributes="false"
colors="true"
verbose="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.0/phpunit.xsd"
cacheDirectory=".phpunit.cache"
backupStaticProperties="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
>
<coverage>
<include>
<directory suffix=".php">src/</directory>
</include>
</coverage>
<testsuites>
<testsuite name="Unit">
<directory suffix="Test.php">./tests/Unit</directory>
Expand All @@ -23,9 +31,4 @@
<env name="APP_KEY" value="AckfSECXIvnK5r28GVIWUAxmbBSjTsmF"/>
<env name="DB_CONNECTION" value="testing"/>
</php>
<source>
<include>
<directory suffix=".php">src/</directory>
</include>
</source>
</phpunit>
Loading

0 comments on commit 9b8c7fd

Please sign in to comment.