Skip to content

Commit e84f809

Browse files
unit tests run under php 7.4
1 parent 2820f2a commit e84f809

File tree

5 files changed

+445
-9
lines changed

5 files changed

+445
-9
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ vendor/
33
storage/
44
composer.lock
55
.idea
6+
.phpunit.result.cache

.phpunit.result.cache

Lines changed: 0 additions & 1 deletion
This file was deleted.

Dockerfile74

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM php:7.4-cli
2+
3+
RUN apt-get update && \
4+
apt-get install -y --no-install-recommends git zip
5+
6+
RUN curl --silent --show-error https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
7+
8+
RUN mkdir -p /app
9+
10+
COPY ./ /app
11+
12+
RUN composer --working-dir=/app install
13+
14+
RUN cd /app && SKIP_TEST=1 ./vendor/bin/phpunit -d memory_limit=1G
15+
16+
CMD ["/bin/sh"]

composer.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"email" : "[email protected]"
1010
}
1111
],
12-
"bin": ["textconsole"],
12+
"bin": ["textconsole","interactive"],
1313
"autoload": {
1414
"psr-4": {
1515
"TextAnalysis\\": "src/"
@@ -19,17 +19,12 @@
1919
"autoload-dev": {
2020
"files": ["tests/TestBaseCase.php"]
2121
},
22-
"extra": {
23-
"branch-alias": {
24-
"dev-master": "1.3.x-dev"
25-
}
26-
},
22+
2723
"bin": ["textconsole"],
2824
"require" : {
2925
"php": ">=7.1",
3026
"yooper/stop-words": "~1",
3127
"symfony/console": "~4.0",
32-
"camspiers/porter-stemmer": "~1",
3328
"wamania/php-stemmer": "~1",
3429
"yooper/nicknames": "~1",
3530
"vanderlee/php-sentence": "~1.0"

0 commit comments

Comments
 (0)