forked from suncat2000/MobileDetectBundle
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update composer.json Update composer.json to mobiledetectlib 4.8 * Update MobileDetector.php Update MobileDetector.php to mobiledetectlib 4.8 * Update MobileDetectorInterface.php update compatibility * Update README.md * Update composer.json * Update composer.json * docs should reflect Symfony 7 Arguably, that first line should match the description (Symfony 5.4-7.0). But arguably anyone using unmaintained versions of Symfony could go back to the original bundle this was forked from. * chore: fix ci deprecations * Update composer.json * Update MobileDetectExtension.php * Update DeviceView.php * Update DeviceDataCollector.php * Remove MobileDetectorInterface and modernize code * Upgrade PHPStan from level 1 to level 7 * Fix yaml error * Remove prefer-dist * Explicitly add symfony/http-kernel * Explicitly add dependencies * Update github actions * Update github actions * Update github actions * Update github actions * PHPUnit config file * Move license to root folder * Rename full to desktop * desktopViewUrl had too many return 3 allowed * Update image * Update image * Update image * Add migration guide --------- Co-authored-by: xpanel <[email protected]> Co-authored-by: Tac Tacelosky <[email protected]> Co-authored-by: chris <[email protected]>
- Loading branch information
1 parent
b335b89
commit ef03cf9
Showing
29 changed files
with
575 additions
and
1,234 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
File renamed without changes.
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,11 @@ | ||
all: test | ||
|
||
phpunit: | ||
php vendor/bin/phpunit | ||
XDEBUG_MODE=coverage | php vendor/bin/phpunit --display-phpunit-deprecations | ||
|
||
lint: | ||
php vendor/bin/php-cs-fixer fix --diff | ||
php vendor/bin/phpcs --report=code | ||
php vendor/bin/phpstan analyse | ||
php vendor/bin/phpstan analyse src tests --level 7 --memory-limit=-1 | ||
|
||
test: lint 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
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,32 +1,34 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- https://phpunit.readthedocs.io/en/9.5/configuration.html --> | ||
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html --> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.1/phpunit.xsd" | ||
backupGlobals="false" | ||
bootstrap="./vendor/autoload.php" | ||
colors="true"> | ||
<coverage includeUncoveredFiles="true"> | ||
<include> | ||
<directory>src</directory> | ||
</include> | ||
<report> | ||
<clover outputFile="build/coverage.xml"/> | ||
<html outputDirectory="build/coverage"/> | ||
<xml outputDirectory="build/coverage-xml"/> | ||
</report> | ||
</coverage> | ||
<php> | ||
<ini name="error_reporting" value="-1"/> | ||
<ini name="memory_limit" value="-1"/> | ||
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[total]=0"/> | ||
</php> | ||
<testsuites> | ||
<testsuite name="MobileDetectBundle Test Suite"> | ||
<directory>tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<logging/> | ||
<listeners> | ||
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/> | ||
</listeners> | ||
colors="true" | ||
bootstrap="vendor/autoload.php" | ||
failOnRisky="true" | ||
failOnWarning="true"> | ||
<php> | ||
<ini name="error_reporting" value="-1"/> | ||
<ini name="memory_limit" value="-1"/> | ||
</php> | ||
|
||
<testsuites> | ||
<testsuite name="Project Test Suite"> | ||
<directory>./tests/</directory> | ||
</testsuite> | ||
</testsuites> | ||
|
||
<source> | ||
<include> | ||
<directory>./src/</directory> | ||
</include> | ||
</source> | ||
|
||
<coverage> | ||
<report> | ||
<clover outputFile="build/coverage.xml"/> | ||
<html outputDirectory="build/coverage"/> | ||
<xml outputDirectory="build/coverage-xml"/> | ||
</report> | ||
</coverage> | ||
</phpunit> |
Oops, something went wrong.