Skip to content

Commit 112875d

Browse files
author
John Kelly
committed
Minor changes
1 parent 0bc73f6 commit 112875d

File tree

6 files changed

+65
-14
lines changed

6 files changed

+65
-14
lines changed

.gitattributes

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Path-based git attributes
2+
# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html
3+
4+
# Ignore all test and documentation with "export-ignore".
15
/.editorconfig export-ignore
26
/.gitattributes export-ignore
37
/.gitignore export-ignore
@@ -6,9 +10,8 @@
610
/Makefile export-ignore
711
/NOTE.DEVELOPMENT.NOV.2011.md export-ignore
812
/NOTE.THENETCIRCLE.md export-ignore
9-
/README.md export-ignore
1013
/benchmark export-ignore
1114
/demo export-ignore
1215
/doc export-ignore
13-
/phpunit.xml export-ignore
16+
/phpunit.xml.dist export-ignore
1417
/tests export-ignore

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
vendor/
22
composer.lock
3+
phpunit.xml
4+
build/

.scrutinizer.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
filter:
22
paths: [PhpAmqpLib/*]
3-
excluded_paths: [tests/*, demo/*, benchmark/*, spec/*]
3+
excluded_paths: [tests/*, demo/*, benchmark/*, spec/*, PhpAmqpLib/Helper/Protocol/*, PhpAmqpLib/Wire/Constants*]
44

55
checks:
66
php:
@@ -21,4 +21,4 @@ checks:
2121
tools:
2222
external_code_coverage:
2323
timeout: 1020
24-
runs: 5
24+
runs: 6

PhpAmqpLib/Channel/AMQPChannel.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
use PhpAmqpLib\Exception\AMQPBasicCancelException;
55
use PhpAmqpLib\Exception\AMQPProtocolChannelException;
66
use PhpAmqpLib\Exception\AMQPRuntimeException;
7-
use PhpAmqpLib\Helper\MiscHelper;
87
use PhpAmqpLib\Message\AMQPMessage;
98
use PhpAmqpLib\Wire\AMQPReader;
109
use PhpAmqpLib\Wire\AMQPWriter;

phpunit.xml

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,25 @@
1-
<phpunit bootstrap="tests/bootstrap.php" colors="true">
2-
<testsuites>
3-
<testsuite name="Unit Tests">
4-
<directory suffix="Test.php" phpVersion="5.3.0" phpVersionOperator=">=">tests/Unit</directory>
5-
</testsuite>
6-
<testsuite name="Functional Tests">
7-
<directory suffix="Test.php" phpVersion="5.3.0" phpVersionOperator=">=">tests/Functional</directory>
8-
</testsuite>
9-
</testsuites>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit bootstrap="tests/bootstrap.php"
3+
backupGlobals="false"
4+
backupStaticAttributes="false"
5+
colors="true"
6+
verbose="true"
7+
convertErrorsToExceptions="true"
8+
convertNoticesToExceptions="true"
9+
convertWarningsToExceptions="true"
10+
processIsolation="false"
11+
stopOnFailure="false">
12+
<testsuites>
13+
<testsuite name="Unit Tests">
14+
<directory suffix="Test.php" phpVersion="5.3.0" phpVersionOperator=">=">tests/Unit</directory>
15+
</testsuite>
16+
<testsuite name="Functional Tests">
17+
<directory suffix="Test.php" phpVersion="5.3.0" phpVersionOperator=">=">tests/Functional</directory>
18+
</testsuite>
19+
</testsuites>
20+
<filter>
21+
<whitelist>
22+
<directory suffix=".php">PhpAmqpLib/</directory>
23+
</whitelist>
24+
</filter>
1025
</phpunit>

phpunit.xml.dist

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit bootstrap="tests/bootstrap.php"
3+
backupGlobals="false"
4+
backupStaticAttributes="false"
5+
colors="true"
6+
verbose="true"
7+
convertErrorsToExceptions="true"
8+
convertNoticesToExceptions="true"
9+
convertWarningsToExceptions="true"
10+
processIsolation="false"
11+
stopOnFailure="false">
12+
<testsuites>
13+
<testsuite name="Unit Tests">
14+
<directory suffix="Test.php" phpVersion="5.3.0" phpVersionOperator=">=">tests/Unit</directory>
15+
</testsuite>
16+
<testsuite name="Functional Tests">
17+
<directory suffix="Test.php" phpVersion="5.3.0" phpVersionOperator=">=">tests/Functional</directory>
18+
</testsuite>
19+
</testsuites>
20+
<filter>
21+
<whitelist>
22+
<directory suffix=".php">PhpAmqpLib/</directory>
23+
</whitelist>
24+
</filter>
25+
<logging>
26+
<log type="tap" target="build/report.tap"/>
27+
<log type="junit" target="build/report.junit.xml"/>
28+
<log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true"/>
29+
<log type="coverage-text" target="build/coverage.txt"/>
30+
<log type="coverage-clover" target="build/logs/clover.xml"/>
31+
</logging>
32+
</phpunit>

0 commit comments

Comments
 (0)