Skip to content

Commit b5364df

Browse files
committed
Exclude functional tests from default phpunit config
1 parent dffdc2a commit b5364df

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed

phpunit.xml.dist

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,21 @@
1111
syntaxCheck="false"
1212
bootstrap="test/bootstrap.php"
1313
>
14-
<testsuites>
15-
<testsuite name="php-github-api Test Suite">
16-
<directory>./test/Github/</directory>
17-
</testsuite>
18-
</testsuites>
14+
<testsuites>
15+
<testsuite name="php-github-api Test Suite">
16+
<directory>./test/Github/</directory>
17+
</testsuite>
18+
</testsuites>
1919

20-
<filter>
21-
<whitelist>
22-
<directory suffix=".php">./lib/Github/</directory>
23-
</whitelist>
24-
</filter>
20+
<groups>
21+
<exclude>
22+
<group>functional</group>
23+
</exclude>
24+
</groups>
25+
26+
<filter>
27+
<whitelist>
28+
<directory suffix=".php">./lib/Github/</directory>
29+
</whitelist>
30+
</filter>
2531
</phpunit>

test/Github/Tests/Functional/TestCase.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
use Github\Exception\ApiLimitExceedException;
77
use Github\Exception\RuntimeException;
88

9+
/**
10+
* @group functional
11+
*/
912
class TestCase extends \PHPUnit_Framework_TestCase
1013
{
1114
protected $client;

0 commit comments

Comments
 (0)