Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHPUnit 10 Shift #268

Merged
merged 10 commits into from
Apr 25, 2024
Merged
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.idea/
vendor/
composer.lock
.phpunit.result.cache
/.phpunit.cache
114 changes: 57 additions & 57 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,59 +1,59 @@
{
"name": "ashallendesign/short-url",
"description": "A Laravel package for creating shortened URLs for your web apps.",
"type": "library",
"homepage": "https://github.com/ash-jc-allen/short-url",
"license": "MIT",
"authors": [
{
"name": "Ash Allen",
"email": "[email protected]"
}
],
"keywords": [
"ashallendesign",
"short-urls",
"url-shortener",
"laravel",
"laravel-package"
],
"require": {
"php": "^8.1",
"nesbot/carbon": "^2.0|^3.0",
"illuminate/container": "^10.0|^11.0",
"illuminate/database": "^10.0|^11.0",
"hashids/hashids": "^4.0|^5.0",
"whichbrowser/parser": "^2.1"
},
"require-dev": {
"mockery/mockery": "^1.0",
"orchestra/testbench": "^8.0|^9.0",
"phpunit/phpunit": "^8.2|^9.0|^10.0",
"larastan/larastan": "^2.0"
},
"autoload": {
"psr-4": {
"AshAllenDesign\\ShortURL\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"AshAllenDesign\\ShortURL\\Tests\\": "tests/"
}
},
"extra": {
"laravel": {
"providers": [
"AshAllenDesign\\ShortURL\\Providers\\ShortURLProvider"
],
"aliases": {
"ShortURL": "AshAllenDesign\\ShortURL\\Facades\\ShortURL"
}
}
},
"scripts": {
"test": "vendor/bin/phpunit"
},
"minimum-stability": "dev",
"prefer-stable": true
"name": "ashallendesign/short-url",
"description": "A Laravel package for creating shortened URLs for your web apps.",
"type": "library",
"homepage": "https://github.com/ash-jc-allen/short-url",
"license": "MIT",
"authors": [
{
"name": "Ash Allen",
"email": "[email protected]"
}
],
"keywords": [
"ashallendesign",
"short-urls",
"url-shortener",
"laravel",
"laravel-package"
],
"require": {
"php": "^8.1",
"nesbot/carbon": "^2.0|^3.0",
"illuminate/container": "^10.0|^11.0",
"illuminate/database": "^10.0|^11.0",
"hashids/hashids": "^4.0|^5.0",
"whichbrowser/parser": "^2.1"
},
"require-dev": {
"mockery/mockery": "^1.0",
"orchestra/testbench": "^8.0|^9.0",
"phpunit/phpunit": "^10.0|^11.0",
"larastan/larastan": "^2.0"
},
"autoload": {
"psr-4": {
"AshAllenDesign\\ShortURL\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"AshAllenDesign\\ShortURL\\Tests\\": "tests/"
}
},
"extra": {
"laravel": {
"providers": [
"AshAllenDesign\\ShortURL\\Providers\\ShortURLProvider"
],
"aliases": {
"ShortURL": "AshAllenDesign\\ShortURL\\Facades\\ShortURL"
}
}
},
"scripts": {
"test": "vendor/bin/phpunit"
},
"minimum-stability": "dev",
"prefer-stable": true
}
41 changes: 16 additions & 25 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,27 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/autoload.php"
backupGlobals="false"
backupStaticAttributes="false"
colors="true"
verbose="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
<testsuites>
<testsuite name="Short URL Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">src/</directory>
</whitelist>
</filter>
<php>
<env name="APP_ENV" value="testing"/>
<env name="DB_CONNECTION" value="sqlite"/>
<env name="DB_DATABASE" value=":memory:"/>
</php>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.1/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<testsuites>
<testsuite name="Short URL Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<php>
<env name="APP_ENV" value="testing"/>
<env name="DB_CONNECTION" value="sqlite"/>
<env name="DB_DATABASE" value=":memory:"/>
</php>
<source>
<include>
<directory suffix=".php">src/</directory>
</include>
</source>
</phpunit>
Loading
Loading