Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Commit c4def86

Browse files
committed
enabled tests
1 parent 19fd053 commit c4def86

File tree

4 files changed

+53
-0
lines changed

4 files changed

+53
-0
lines changed

.travis.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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"

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
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+
38
Codeception heavily relies on PHPUnit for running and managing tests.
49
Not all PHPUnit classes fit the needs of Codeception, that's why they were extended or redefined.
510

RoboFile.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
}

composer.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,9 @@
1919
"psr-4":{
2020
"Codeception\\PHPUnit\\": "src\\"
2121
}
22+
},
23+
"require-dev": {
24+
"vlucas/phpdotenv": "^2.4",
25+
"codeception/specify": "*"
2226
}
2327
}

0 commit comments

Comments
 (0)