Skip to content

Commit

Permalink
test: Improve the test 035 (#867)
Browse files Browse the repository at this point in the history
- Rework the test script to be clearer.
- Add the versions of the package detected.
- Pin the versions to avoid having the output changing.
  • Loading branch information
theofidry authored Nov 1, 2023
1 parent cff4a1b commit 49bd7fa
Show file tree
Hide file tree
Showing 8 changed files with 103 additions and 91 deletions.
2 changes: 1 addition & 1 deletion .makefile/e2e.file
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ e2e_035: $(PHP_SCOPER_PHAR_BIN) fixtures/set035-composer-files-autoload/vendor f
composer --working-dir=build/set035-composer-files-autoload/scoped-guzzle5-include dump-autoload
rm -rf build/set035-composer-files-autoload/guzzle5-include || true

php build/set035-composer-files-autoload/index.php &> build/set035-composer-files-autoload/output || true
php build/set035-composer-files-autoload/index.php 2>&1 > build/set035-composer-files-autoload/output
php build/set035-composer-files-autoload/test.php

.PHONY: e2e_036
Expand Down
2 changes: 1 addition & 1 deletion fixtures/set035-composer-files-autoload/composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"bin": "index.php",
"require": {
"guzzlehttp/guzzle": "^6.0"
"guzzlehttp/guzzle": "^6.5.8"
}
}
96 changes: 43 additions & 53 deletions fixtures/set035-composer-files-autoload/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"bin": "index.php",
"require": {
"guzzlehttp/guzzle": "^5.0"
"guzzlehttp/guzzle": "5.3.4"
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 49bd7fa

Please sign in to comment.