This repository was archived by the owner on Mar 12, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +53
-0
lines changed
Expand file tree Collapse file tree 4 files changed +53
-0
lines changed Original file line number Diff line number Diff line change 1+ language : php
2+
3+ env :
4+ CODECEPTION_VERSION : ' 2.4.x-dev'
5+
6+ php :
7+ - 7.1
8+ - 7.2
9+
10+ before_script :
11+ - wget https://robo.li/robo.phar
12+ - php robo.phar prepare
13+ - composer update
14+
15+ script :
16+ - php robo.phar test cli
17+ - php robo.phar test "unit -g core"
Original file line number Diff line number Diff line change 11# PHPUnit Wrapper
22
3+ Builds:
4+
5+ * 6.0 [ ![ Build Status] ( https://travis-ci.org/Codeception/phpunit-wrapper.svg?branch=6.0 )] ( https://travis-ci.org/Codeception/phpunit-wrapper )
6+ * 7.0 [ ![ Build Status] ( https://travis-ci.org/Codeception/phpunit-wrapper.svg?branch=7.0 )] ( https://travis-ci.org/Codeception/phpunit-wrapper )
7+
38Codeception heavily relies on PHPUnit for running and managing tests.
49Not all PHPUnit classes fit the needs of Codeception, that's why they were extended or redefined.
510
Original file line number Diff line number Diff line change 1+ <?php
2+ /**
3+ * This is project's console commands configuration for Robo task runner.
4+ *
5+ * @see http://robo.li/
6+ */
7+ class RoboFile extends \Robo \Tasks
8+ {
9+ // define public methods as commands
10+ public function prepare ()
11+ {
12+ $ config = json_decode (file_get_contents (__DIR__ . '/composer.json ' ), true );
13+
14+ $ config ['name ' ] = 'codeception/phpunit-wrapper-test ' ;
15+ $ config ['require-dev ' ]['codeception/codeception ' ] = getenv ('CODECEPTION_VERSION ' );
16+ $ config ['replace ' ] = ['codeception/phpunit-wrapper ' => '* ' ];
17+
18+ file_put_contents (__DIR__ . '/composer.json ' , json_encode ($ config ));
19+ }
20+
21+ public function test ($ params )
22+ {
23+ return $ this ->taskExec (__DIR__ . '/vendor/bin/codecept run ' . $ params )
24+ ->dir (__DIR__ .'/vendor/codeception/codeception ' )
25+ ->run ();
26+ }
27+ }
Original file line number Diff line number Diff line change 1919 "psr-4" :{
2020 "Codeception\\ PHPUnit\\ " : " src\\ "
2121 }
22+ },
23+ "require-dev" : {
24+ "vlucas/phpdotenv" : " ^2.4" ,
25+ "codeception/specify" : " *"
2226 }
2327}
You can’t perform that action at this time.
0 commit comments