Skip to content

Commit

Permalink
enhance testing
Browse files Browse the repository at this point in the history
  • Loading branch information
pmdevelopment committed Dec 23, 2024
1 parent d47cf3b commit 1603edf
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ test-deprecated-rights:
@echo "--------------------------------------"
@echo "------------- PHPUnit ----------------"
@echo "--------------------------------------"
APP_1076=deprecated php bin/phpunit $(TARGET)
php bin/phpunit -c phpunit-deprecated.xml.dist $(TARGET)

test:
@echo "--------------------------------------"
Expand Down Expand Up @@ -98,4 +98,4 @@ test:
@echo "--------------------------------------"
@echo "------------- PHPUnit ----------------"
@echo "--------------------------------------"
APP_1076=new php bin/phpunit $(TARGET)
php bin/phpunit -c phpunit.xml.dist $(TARGET)
34 changes: 34 additions & 0 deletions phpunit-deprecated.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd" backupGlobals="false" colors="true" bootstrap="tests/bootstrap.php"
stopOnFailure="true" stopOnError="true">
<php>
<ini name="display_errors" value="1"/>
<ini name="error_reporting" value="-1"/>
<server name="APP_ENV" value="test"/>
<server name="KERNEL_CLASS" value="App\Kernel"/>
<env name="SYMFONY_DEPRECATIONS_HELPER" value="weak"/>
<env name="SYMFONY_PHPUNIT_VERSION" value="9.6"/>
<env name="APP_1076" value="deprecated"/>
</php>
<coverage>
<include>
<directory>vendor/wirdesign-communication-ag/wirhub</directory>
</include>
<exclude>
<directory>vendor/wirdesign-communication-ag/wirhub/assets</directory>
<directory>vendor/wirdesign-communication-ag/wirhub/build</directory>
<directory>vendor/wirdesign-communication-ag/wirhub/Resources</directory>
<directory>vendor/wirdesign-communication-ag/wirhub/Tests</directory>
<directory>vendor/wirdesign-communication-ag/wirhub/translations</directory>
</exclude>
</coverage>
<extensions>
<extension class="Symfony\Component\Panther\ServerExtension"/>
<extension class="AppBundle\Tests\Helper\Hooks\BypassFinalHook"/>
</extensions>
<testsuites>
<testsuite name="Application Tests">
<directory>vendor/wirdesign-communication-ag/wirhub/Tests</directory>
</testsuite>
</testsuites>
</phpunit>
1 change: 1 addition & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<server name="KERNEL_CLASS" value="App\Kernel"/>
<env name="SYMFONY_DEPRECATIONS_HELPER" value="weak"/>
<env name="SYMFONY_PHPUNIT_VERSION" value="9.6"/>
<env name="APP_1076" value="new"/>
</php>
<coverage>
<include>
Expand Down

0 comments on commit 1603edf

Please sign in to comment.