Skip to content

Commit

Permalink
Merge pull request #9 from bayareawebpro/dev
Browse files Browse the repository at this point in the history
Laravel 10.x Compatibility
  • Loading branch information
bayareawebpro authored Mar 27, 2023
2 parents 7a70f76 + 2530b9a commit 8a7244a
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 95 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: ci
env:
XDEBUG_MODE: 'coverage'
on:
push:
branches:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ docs
vendor
coverage
.phpunit.result.cache
.phpunit.cache/test-results
1 change: 1 addition & 0 deletions .phpunit.cache/test-results
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":1,"defects":[],"times":{"BayAreaWebPro\\DomPipeline\\Tests\\Unit\\DefaultTest::test_can_pipe_dom_and_only_return_body_children":0.013,"BayAreaWebPro\\DomPipeline\\Tests\\Unit\\DefaultTest::test_can_pipe_null":0,"BayAreaWebPro\\DomPipeline\\Tests\\Unit\\ProviderTest::test_provider_is_registered":0,"BayAreaWebPro\\DomPipeline\\Tests\\Unit\\ProviderTest::test_container_can_resolve_instance":0,"BayAreaWebPro\\DomPipeline\\Tests\\Unit\\ProviderTest::test_facade_can_resolve_instance":0,"BayAreaWebPro\\DomPipeline\\Tests\\Unit\\ProviderTest::test_service_can_be_resolved":0,"BayAreaWebPro\\DomPipeline\\Tests\\Unit\\ProviderTest::test_declares_provided":0}}
57 changes: 0 additions & 57 deletions clover.xml

This file was deleted.

12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@
"authors": [
{
"name": "Dan Alvidrez",
"email": "dan@bayareawebpro.com",
"email": "dan.bayareawebpro@gmail.com",
"role": "Developer"
}
],
"require": {
"php": "^7.4|^8.0",
"ext-dom": "*",
"ext-libxml": "*",
"illuminate/pipeline": "^6.0|^7.0|^8.0|^9.0",
"illuminate/support": "^6.0|^7.0|^8.0|^9.0"
"illuminate/pipeline": "^6.0|^7.0|^8.0|^9.0|^10.0",
"illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0"
},
"require-dev": {
"phpunit/phpunit": "^7.0|^8.0|^9.0",
"orchestra/testbench": "^5.0|^6.0|^7.0",
"nunomaduro/larastan": "^0.6|^1.0"
"phpunit/phpunit": "^7.0|^8.0|^9.0|^10.0",
"orchestra/testbench": "^5.0|^6.0|^7.0|^8.0",
"nunomaduro/larastan": "^0.6|^1.0|^2.0"
},
"autoload": {
"psr-4": {
Expand Down
56 changes: 24 additions & 32 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,34 +1,26 @@
<?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="Unit">
<directory suffix="Test.php">./tests/Unit</directory>
</testsuite>
</testsuites>
<filter>
<whitelist addUncoveredFilesFromWhitelist="false">
<directory suffix=".php">src/</directory>
</whitelist>
</filter>
<logging>
<log type="tap" target="build/report.tap"/>
<log type="junit" target="build/report.junit.xml"/>
<log type="coverage-clover" target="clover.xml"/>
</logging>
<php>
<env name="APP_KEY" value="AckfSECXIvnK5r28GVIWUAxmbBSjTsm1"/>
<env name="APP_ENV" value="testing"/>
<env name="APP_URL" value="http://localhost"/>
<env name="DB_DATABASE" value=":memory:"/>
<env name="DB_CONNECTION" value="sqlite"/>
</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/10.0/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<coverage includeUncoveredFiles="false">
<include>
<directory suffix=".php">src/</directory>
</include>
<report>
<clover outputFile="clover.xml"/>
</report>
</coverage>
<testsuites>
<testsuite name="Unit">
<directory suffix="Test.php">./tests/Unit</directory>
</testsuite>
</testsuites>
<logging>
<junit outputFile="build/report.junit.xml"/>
</logging>
<php>
<env name="APP_KEY" value="AckfSECXIvnK5r28GVIWUAxmbBSjTsm1"/>
<env name="APP_ENV" value="testing"/>
<env name="APP_URL" value="http://localhost"/>
<env name="DB_DATABASE" value=":memory:"/>
<env name="DB_CONNECTION" value="sqlite"/>
</php>
</phpunit>

0 comments on commit 8a7244a

Please sign in to comment.