File tree Expand file tree Collapse file tree 4 files changed +12
-2
lines changed Expand file tree Collapse file tree 4 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 2222 - run : composer install
2323 - env :
2424 DETECTLANGUAGE_API_KEY : ${{ secrets.DETECTLANGUAGE_API_KEY }}
25- run : bin/phpunit
25+ run : composer test
Original file line number Diff line number Diff line change 1515 "php" : " >=5.3.0"
1616 },
1717 "require-dev" : {
18+ "phpunit/phpunit" : " ^9.6" ,
1819 "yoast/phpunit-polyfills" : " ^1.0"
1920 },
2021 "config" : {
2425 "psr-0" : {
2526 "DetectLanguage" : " lib/"
2627 }
28+ },
29+ "scripts" : {
30+ "test" : " php -d memory_limit=512M vendor/phpunit/phpunit/phpunit" ,
31+ "test-silent" : " php -d memory_limit=512M -d error_reporting='E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED' vendor/phpunit/phpunit/phpunit"
2732 }
2833}
Original file line number Diff line number Diff line change 22
33[env ]
44_.file = " .env.local"
5+
6+ [tasks ]
7+ test = " composer test"
8+ test-silent = " composer test-silent"
9+
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
2- <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" backupGlobals =" false" bootstrap =" vendor/autoload.php" colors =" true" xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.3/phpunit.xsd" >
2+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" backupGlobals =" false" bootstrap =" vendor/autoload.php" colors =" true" xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.3/phpunit.xsd" convertDeprecationsToExceptions = " false " >
33 <coverage >
44 <include >
55 <directory suffix =" .php" >./lib/DetectLanguage/</directory >
You can’t perform that action at this time.
0 commit comments