Skip to content

Commit febaefb

Browse files
Add require-dev in order to remove downloads of phars.
1 parent 9d76c94 commit febaefb

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

‎CONTRIBUTING.md‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ Setting up
88
2. Install [Composer](https://getcomposer.org/) if you don't already have it.
99
2. Run `composer install` to fetch all the dependencies.
1010
3. Run `./bin/wp --info` to test if everything was installed properly.
11-
4. Download PHPUnit: `curl -L https://phar.phpunit.de/phpunit.phar > phpunit.phar`
12-
5. Download Behat: `curl -L http://behat.org/downloads/behat.phar > behat.phar`
1311

1412
Submitting patches
1513
------------------
@@ -41,7 +39,7 @@ The unit test files are in the `tests/` directory.
4139

4240
To run the unit tests, just execute:
4341

44-
php phpunit.phar
42+
vendor/phpunit/phpunit/phpunit.php
4543

4644
### Functional tests
4745

@@ -55,13 +53,13 @@ Running the following as root in MySQL should do the trick:
5553

5654
Then, to run the entire test suite:
5755

58-
php behat.phar --expand
56+
vendor/behat/behat/bin/behat --expand
5957

6058
Or to test a single feature:
6159

62-
php behat.phar features/core.feature
60+
vendor/behat/behat/bin/behat features/core.feature
6361

64-
More info can be found from `php behat.phar --help`.
62+
More info can be found from `vendor/behat/behat/bin/behat --help`.
6563

6664
Finally...
6765
----------

‎composer.json‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
"symfony/finder": "~2.3",
1717
"nb/oxymel": "0.1.0"
1818
},
19+
"require-dev": {
20+
"phpunit/phpunit": "3.7.*",
21+
"behat/behat": "2.5.*@dev"
22+
},
1923
"suggest": {
2024
"psy/psysh": "Enhanced `wp shell` functionality"
2125
},

0 commit comments

Comments
 (0)