-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated PHPUnit config * Adjusted `auditor` requirement * Better viewer for changes inside JSON columns * Tweak `phpdoc_to_comment` rule (PHP-CS-Fixer ) --------- Co-authored-by: Fabian Kropfhamer <[email protected]>
- Loading branch information
1 parent
120fd50
commit bf8b9c3
Showing
5 changed files
with
74 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.3/phpunit.xsd" bootstrap="tests/bootstrap.php" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.4/phpunit.xsd" bootstrap="tests/bootstrap.php" | ||
executionOrder="depends,defects" beStrictAboutOutputDuringTests="true" cacheDirectory=".phpunit.cache" | ||
requireCoverageMetadata="false" beStrictAboutCoverageMetadata="true"> | ||
<coverage includeUncoveredFiles="true"> | ||
<report> | ||
<html outputDirectory="tests/coverage"/> | ||
</report> | ||
</coverage> | ||
<logging/> | ||
<php> | ||
<ini name="error_reporting" value="-1"/> | ||
<server name="KERNEL_CLASS" value="DH\AuditorBundle\Tests\App\Kernel"/> | ||
<server name="APP_ENV" value="test" force="true"/> | ||
<server name="SHELL_VERBOSITY" value="-1"/> | ||
<!-- <server name="SYMFONY_DEPRECATIONS_HELPER" value="weak"/>--> | ||
<env name="BOOTSTRAP_CLEAR_CACHE_ENV" value="test"/> | ||
</php> | ||
<testsuites> | ||
<testsuite name="Auditor Bundle test suite"> | ||
<directory suffix="Test.php">tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<source> | ||
<include> | ||
<directory suffix=".php">src</directory> | ||
</include> | ||
</source> | ||
<coverage> | ||
<report> | ||
<html outputDirectory="tests/coverage"/> | ||
</report> | ||
</coverage> | ||
<logging/> | ||
<php> | ||
<ini name="error_reporting" value="-1"/> | ||
<server name="KERNEL_CLASS" value="DH\AuditorBundle\Tests\App\Kernel"/> | ||
<server name="APP_ENV" value="test" force="true"/> | ||
<server name="SHELL_VERBOSITY" value="-1"/> | ||
<!-- <server name="SYMFONY_DEPRECATIONS_HELPER" value="weak"/>--> | ||
<env name="BOOTSTRAP_CLEAR_CACHE_ENV" value="test"/> | ||
</php> | ||
<testsuites> | ||
<testsuite name="Auditor Bundle test suite"> | ||
<directory suffix="Test.php">tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<source> | ||
<include> | ||
<directory suffix=".php">src</directory> | ||
</include> | ||
</source> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{% import '@DHAuditor/Audit/helpers/helper.html.twig' as helper %} | ||
|
||
<tr class="bg-white"> | ||
<td class="px-3 py-1 whitespace-nowrap text-sm font-medium text-gray-900"> | ||
{#{{ dump('entry_diff', key, values) }}#} | ||
<code class="text-gray-700">{{ key }}</code> | ||
</td> | ||
<td class="px-3 py-1 text-sm text-gray-500"> | ||
{% if values.old is defined %} | ||
{% if values.old is null %} | ||
<span class="bg-gray-500 px-2 py-0.5 rounded text-white">null</span> | ||
{% else %} | ||
<span class="text-red-500">{{ helper.dump(values.old) }}</span> | ||
{% endif %} | ||
{% endif %} | ||
</td> | ||
<td class="px-3 py-1 text-sm text-gray-500"> | ||
{% if values.new is defined %} | ||
{% if values.new is null %} | ||
<span class="bg-gray-500 px-2 py-0.5 rounded text-white">null</span> | ||
{% else %} | ||
{% if values.old is not defined or values.old is null %} | ||
<span class="text-blue-500">{{ helper.dump(values.new) }}</span> | ||
{% else %} | ||
<span class="text-green-500">{{ helper.dump(values.new) }}</span> | ||
{% endif %} | ||
{% endif %} | ||
{% endif %} | ||
</td> | ||
</tr> |