Skip to content

Commit d400338

Browse files
committed
Enabled code coverage.
1 parent a5871a7 commit d400338

File tree

4 files changed

+60
-13
lines changed

4 files changed

+60
-13
lines changed

.gitignore

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
.idea/
2-
bin/
3-
composer.lock
4-
doc/
5-
vendor/
1+
/.idea/
2+
/bin/
3+
/doc/
4+
/composer.lock
5+
/test/report
6+
/test/coverage.xml
7+
/vendor/

README.md

Lines changed: 33 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,38 @@
11
# Exceptions with format string
22

3-
[![License](https://poser.pugx.org/setbased/exception/license)](https://packagist.org/packages/setbased/exception)
4-
[![Latest Stable Version](https://poser.pugx.org/setbased/exception/v/stable)](https://packagist.org/packages/setbased/exception)
5-
[![Dependency Status](https://www.versioneye.com/user/projects/571143d0fcd19a00518559f0/badge.svg?style=flat)](https://www.versioneye.com/user/projects/571143d0fcd19a00518559f0)
6-
[![Build Status](https://travis-ci.org/SetBased/php-exception.svg?branch=master)](https://travis-ci.org/SetBased/php-exception)
7-
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/SetBased/php-exception/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/SetBased/php-exception/?branch=master)
8-
[![Codacy Badge](https://api.codacy.com/project/badge/grade/cbe85532d70a442382714e8a9ba9d276)](https://www.codacy.com/app/p-r-water/php-exception)
9-
[![PHP 7 ready](http://php7ready.timesplinter.ch/SetBased/php-exception/badge.svg)](https://travis-ci.org/SetBased/php-exception)
3+
<table>
4+
<thead>
5+
<tr>
6+
<th>Social</th>
7+
<th>Legal</th>
8+
<th>Release</th>
9+
<th>Tests</th>
10+
<th>Code</th>
11+
</tr>
12+
</thead>
13+
<tbody>
14+
<tr>
15+
<td>
16+
<a href="https://gitter.im/SetBased/php-abc?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge"><img src="https://badges.gitter.im/SetBased/php-abc.svg" alt="Gitter"/></a>
17+
</td>
18+
<td>
19+
<a href="https://packagist.org/packages/setbased/abc-exception"><img src="https://poser.pugx.org/setbased/abc-exception/license" alt="License"/></a>
20+
</td>
21+
<td>
22+
<a href="https://packagist.org/packages/setbased/abc-exception"><img src="https://poser.pugx.org/setbased/abc-exception/v/stable" alt="Latest Stable Version"/></a><br/>
23+
<a href="https://www.versioneye.com/user/projects/cbe85532d70a442382714e8a9ba9d276"><img src="https://www.versioneye.com/user/projects/cbe85532d70a442382714e8a9ba9d276/badge.svg?style=flat" alt="Dependency Status"/></a>
24+
</td>
25+
<td>
26+
<a href="https://travis-ci.org/SetBased/php-abc-exception"><img src="https://travis-ci.org/SetBased/php-abc-exception.svg?branch=master" alt="Build Status"/></a><br/>
27+
<a href="https://scrutinizer-ci.com/g/SetBased/php-abc-exception/?branch=master"><img src="https://scrutinizer-ci.com/g/SetBased/php-abc-exception/badges/coverage.png?b=master" alt="Code Coverage"/></a>
28+
</td>
29+
<td>
30+
<a href="https://scrutinizer-ci.com/g/SetBased/php-abc-exception/?branch=master"><img src="https://scrutinizer-ci.com/g/SetBased/php-abc-exception/badges/quality-score.png?b=master" alt="Scrutinizer Code Quality"/></a><br/>
31+
<a href="https://travis-ci.org/SetBased/php-abc-exception"><img src="http://php7ready.timesplinter.ch/SetBased/php-abc-exception/badge.svg" alt="PHP 7 ready"/></a>
32+
</td>
33+
</tr>
34+
</tbody>
35+
</table>
1036

1137
This package provides exceptions with messages according a format string like
1238
[sprintf](http://php.net/manual/en/function.sprintf.php).

build.xml

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

1111
<!-- Runs all unit tests -->
1212
<target name="unit">
13-
<exec command="bin/phpunit --bootstrap=test/bootstrap.php test" passthru="true" checkreturn="true"/>
13+
<exec command="bin/phpunit" passthru="true" checkreturn="true"/>
1414
</target>
1515
</project>

phpunit.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<phpunit bootstrap="test/bootstrap.php">
2+
<testsuites>
3+
<testsuite name="Tests">
4+
<directory>test</directory>
5+
</testsuite>
6+
</testsuites>
7+
<filter>
8+
<whitelist processUncoveredFilesFromWhitelist="true">
9+
<directory suffix=".php">src</directory>
10+
<exclude>
11+
<directory suffix=".php">vendor/setbased</directory>
12+
</exclude>
13+
</whitelist>
14+
</filter>
15+
<logging>
16+
<log type="coverage-html" target="test/report"/>
17+
<log type="coverage-clover" target="test/coverage.xml"/>
18+
</logging>
19+
</phpunit>

0 commit comments

Comments
 (0)