Skip to content

Commit 08f1998

Browse files
committed
E2E test for project with react/promise and parallel run
1 parent 81cd8f4 commit 08f1998

25 files changed

Lines changed: 79 additions & 0 deletions

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,13 @@ jobs:
139139
- composer install
140140
- ../../phpstan analyse -l 8 test.php
141141

142+
- stage: Other Tests
143+
name: Run project depending on react/promise
144+
script:
145+
- cd e2e/react-promise
146+
- composer install
147+
- ../../phpstan analyse -l 8 src
148+
142149
- stage: Draft The Release
143150
script: skip
144151
deploy:

e2e/react-promise/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/composer.lock
2+
/vendor

e2e/react-promise/composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"require-dev": {
3+
"react/promise": "^2.7.1"
4+
}
5+
}

e2e/react-promise/phpstan.neon

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
includes:
2+
- phar://phpstan.phar/conf/bleedingEdge.neon

e2e/react-promise/src/test.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php declare(strict_types = 1);
2+
3+
echo "ok";

e2e/react-promise/src/test10.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php declare(strict_types = 1);
2+
3+
echo "ok";

e2e/react-promise/src/test11.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php declare(strict_types = 1);
2+
3+
echo "ok";

e2e/react-promise/src/test12.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php declare(strict_types = 1);
2+
3+
echo "ok";

e2e/react-promise/src/test13.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php declare(strict_types = 1);
2+
3+
echo "ok";

e2e/react-promise/src/test14.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php declare(strict_types = 1);
2+
3+
echo "ok";

0 commit comments

Comments
 (0)