File tree 7 files changed +50
-13
lines changed
7 files changed +50
-13
lines changed Original file line number Diff line number Diff line change @@ -9,4 +9,4 @@ before_script:
9
9
- wget -nc http://getcomposer.org/composer.phar
10
10
- php composer.phar install
11
11
12
- script : phpunit
12
+ script : phpunit -c tests/
Original file line number Diff line number Diff line change 17
17
</testsuite >
18
18
</testsuites >
19
19
20
+ <groups >
21
+ <exclude >
22
+ <group >slow</group >
23
+ </exclude >
24
+ </groups >
25
+
20
26
<filter >
21
27
<whitelist >
22
28
<directory >./src/Composer/</directory >
Original file line number Diff line number Diff line change 15
15
use Composer \Repository \FilesystemRepository ;
16
16
use Composer \Test \TestCase ;
17
17
18
+ /**
19
+ * @group slow
20
+ */
18
21
class PearRepositoryTest extends TestCase
19
22
{
20
-
21
23
/**
22
24
* @var PearRepository
23
25
*/
Original file line number Diff line number Diff line change 17
17
use Composer \Util \Filesystem ;
18
18
use Composer \Config ;
19
19
20
- /**
21
- * @author Beau Simensen <[email protected] >
22
- */
23
20
class GitHubDriverTest extends \PHPUnit_Framework_TestCase
24
21
{
25
22
public function testPrivateRepository ()
Original file line number Diff line number Diff line change 21
21
use Composer \IO \NullIO ;
22
22
use Composer \Config ;
23
23
24
+ /**
25
+ * @group slow
26
+ */
24
27
class VcsRepositoryTest extends \PHPUnit_Framework_TestCase
25
28
{
26
29
private static $ gitRepo ;
27
- private static $ skipped ;
30
+ private $ skipped ;
28
31
29
- public static function setUpBeforeClass ()
32
+ protected function initialize ()
30
33
{
31
34
$ oldCwd = getcwd ();
32
35
self ::$ gitRepo = sys_get_temp_dir () . '/composer-git- ' .rand ().'/ ' ;
33
36
34
37
$ locator = new ExecutableFinder ();
35
38
if (!$ locator ->find ('git ' )) {
36
- self :: $ skipped = 'This test needs a git binary in the PATH to be able to run ' ;
39
+ $ this -> skipped = 'This test needs a git binary in the PATH to be able to run ' ;
37
40
return ;
38
41
}
39
42
if (!mkdir (self ::$ gitRepo ) || !chdir (self ::$ gitRepo )) {
40
- self :: $ skipped = 'Could not create and move into the temp git repo ' .self ::$ gitRepo ;
43
+ $ this -> skipped = 'Could not create and move into the temp git repo ' .self ::$ gitRepo ;
41
44
return ;
42
45
}
43
46
@@ -101,8 +104,11 @@ public static function setUpBeforeClass()
101
104
102
105
public function setUp ()
103
106
{
104
- if (self ::$ skipped ) {
105
- $ this ->markTestSkipped (self ::$ skipped );
107
+ if (!self ::$ gitRepo ) {
108
+ $ this ->initialize ();
109
+ }
110
+ if ($ this ->skipped ) {
111
+ $ this ->markTestSkipped ($ this ->skipped );
106
112
}
107
113
}
108
114
Original file line number Diff line number Diff line change 17
17
18
18
/**
19
19
* ErrorHandler test case
20
- *
21
- * @author Artem Lopata <[email protected] >
22
20
*/
23
21
class ErrorHandlerTest extends TestCase
24
22
{
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+
3
+ <phpunit backupGlobals =" false"
4
+ backupStaticAttributes =" false"
5
+ colors =" true"
6
+ convertErrorsToExceptions =" true"
7
+ convertNoticesToExceptions =" true"
8
+ convertWarningsToExceptions =" true"
9
+ processIsolation =" false"
10
+ stopOnFailure =" false"
11
+ syntaxCheck =" false"
12
+ bootstrap =" ./bootstrap.php"
13
+ >
14
+ <testsuites >
15
+ <testsuite name =" Full Composer Test Suite" >
16
+ <directory >./Composer/</directory >
17
+ </testsuite >
18
+ </testsuites >
19
+
20
+ <filter >
21
+ <whitelist >
22
+ <directory >../src/Composer/</directory >
23
+ <exclude >
24
+ <file >../src/Composer/Autoload/ClassLoader.php</file >
25
+ </exclude >
26
+ </whitelist >
27
+ </filter >
28
+ </phpunit >
You can’t perform that action at this time.
0 commit comments