Skip to content

Commit 16aaf99

Browse files
authored
Specify phpunit version in composer. Simplify project files (#19)
* Upgrade to latest phpunit * Simplify * Make phpunit 6 compatible * fix
1 parent a7d281e commit 16aaf99

File tree

6 files changed

+13
-36
lines changed

6 files changed

+13
-36
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ nbproject/
33
.idea/
44
.php_cs.cache
55

6+
# Eclipse
7+
.buildpath
8+
.project
9+
.settings/
10+
611
# Created by http://www.gitignore.io
712

813
### Composer ###

.travis.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,9 @@ php:
66
- 7.2
77
- 7.3
88

9-
install:
10-
- composer install --no-interaction --classmap-authoritative
11-
- composer require --no-interaction php-coveralls/php-coveralls:^2.0
9+
install: composer install --no-interaction --classmap-authoritative --no-suggest
1210

13-
script:
14-
- chmod +x run-phpunit.sh
15-
- ./run-phpunit.sh
11+
script: vendor/bin/phpunit --configuration phpunit.xml
1612

1713
after_success: vendor/bin/php-coveralls --verbose
1814

composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,10 @@
3535
},
3636
"require": {
3737
"php": "^7.0"
38+
},
39+
"require-dev": {
40+
"phpunit/phpunit": "^6.0",
41+
"friendsofphp/php-cs-fixer": "^2.15",
42+
"php-coveralls/php-coveralls": "^2.1"
3843
}
3944
}

run-php-cs-fixer.sh

Lines changed: 0 additions & 12 deletions
This file was deleted.

run-phpunit.sh

Lines changed: 0 additions & 17 deletions
This file was deleted.

tests/LuhnAlgorithmTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class LuhnAlgorithmTest extends TestCase
3636
*/
3737
private $luhn;
3838

39-
public function setUp()
39+
protected function setUp()
4040
{
4141
parent::setUp();
4242

0 commit comments

Comments
 (0)