Skip to content

Commit 65cdbd7

Browse files
committed
PHPUnit configuration
1 parent c95524e commit 65cdbd7

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

phpunit.xml.dist renamed to phpunit.xml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,31 @@
22
<phpunit bootstrap="vendor/autoload.php"
33
backupGlobals="false"
44
backupStaticAttributes="false"
5+
beStrictAboutTestsThatDoNotTestAnything="false"
56
colors="true"
67
verbose="true"
78
convertErrorsToExceptions="true"
89
convertNoticesToExceptions="true"
910
convertWarningsToExceptions="true"
10-
processIsolation="false"
11+
failOnRisky="true"
12+
failOnWarning="true"
1113
stopOnFailure="false">
14+
<php>
15+
<ini name="error_reporting" value="-1"/>
16+
<env name="RIDGE_TEST_DSN" value="amqp://guest:guest@localhost:5672"/>
17+
</php>
1218
<testsuites>
1319
<testsuite name="PHPinnacle Test Suite">
1420
<directory>tests</directory>
1521
</testsuite>
1622
</testsuites>
1723
<filter>
1824
<whitelist>
19-
<directory suffix=".php">src/</directory>
25+
<directory>./</directory>
26+
<exclude>
27+
<directory>./tests</directory>
28+
<directory>./vendor</directory>
29+
</exclude>
2030
</whitelist>
2131
</filter>
2232
<listeners>
@@ -27,6 +37,6 @@
2737
<log type="junit" target="build/report.junit.xml"/>
2838
<log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true"/>
2939
<log type="coverage-text" target="build/coverage.txt"/>
30-
<log type="coverage-clover" target="build/logs/clover.xml"/>
40+
<log type="coverage-clover" target="build/clover.xml"/>
3141
</logging>
3242
</phpunit>

src/Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
namespace PHPinnacle\Ridge;
1212

13-
class Parser
13+
final class Parser
1414
{
1515
/**
1616
* @var Buffer

0 commit comments

Comments
 (0)