Skip to content

Commit

Permalink
up: update phpunit and composer config
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Oct 19, 2023
1 parent c7bbbd6 commit 5e0b59a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,10 @@
},
"scripts": {
"test": "php vender/bin/phpunit"
},
"config": {
"allow-plugins": {
"php-http/discovery": true
}
}
}
27 changes: 12 additions & 15 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false"
bootstrap="test/bootstrap.php" colors="false" convertErrorsToExceptions="true" convertNoticesToExceptions="true"
convertWarningsToExceptions="true" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">

<testsuites>
<testsuite name="Library Test Suite">
<directory>test/</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory suffix=".php">app</directory>
</whitelist>
</filter>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" bootstrap="test/bootstrap.php" colors="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.4/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<coverage/>
<testsuites>
<testsuite name="Library Test Suite">
<directory>test/</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">app</directory>
</include>
</source>
</phpunit>
1 change: 1 addition & 0 deletions script/upinit-kite-dev-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ set -e

# proxy_on
kiteDir=~/.kite
# kiteDir=~/workspace/phpdev/gh-repos/kite
ghHost=https://github.com
cd $kiteDir

Expand Down

0 comments on commit 5e0b59a

Please sign in to comment.