Skip to content

Commit

Permalink
Exclude functional tests from default phpunit config
Browse files Browse the repository at this point in the history
  • Loading branch information
stloyd committed Feb 19, 2013
1 parent dffdc2a commit b5364df
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
26 changes: 16 additions & 10 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,21 @@
syntaxCheck="false"
bootstrap="test/bootstrap.php"
>
<testsuites>
<testsuite name="php-github-api Test Suite">
<directory>./test/Github/</directory>
</testsuite>
</testsuites>
<testsuites>
<testsuite name="php-github-api Test Suite">
<directory>./test/Github/</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory suffix=".php">./lib/Github/</directory>
</whitelist>
</filter>
<groups>
<exclude>
<group>functional</group>
</exclude>
</groups>

<filter>
<whitelist>
<directory suffix=".php">./lib/Github/</directory>
</whitelist>
</filter>
</phpunit>
3 changes: 3 additions & 0 deletions test/Github/Tests/Functional/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
use Github\Exception\ApiLimitExceedException;
use Github\Exception\RuntimeException;

/**
* @group functional
*/
class TestCase extends \PHPUnit_Framework_TestCase
{
protected $client;
Expand Down

0 comments on commit b5364df

Please sign in to comment.