diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-02-21 20:54:29 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-02-21 20:54:29 +0900 |
| commit | e40ae3649d62a933211e81d8ac773fdd86ff1dfb (patch) | |
| tree | 22713882537531c2b0f0a55248045d9f280ce3fe /crates/mozart/tests/fixtures/with_lock | |
| parent | 3c8ce2b72daccccc88278b8dfbff1a1acc39096c (diff) | |
| download | php-mozart-e40ae3649d62a933211e81d8ac773fdd86ff1dfb.tar.gz php-mozart-e40ae3649d62a933211e81d8ac773fdd86ff1dfb.tar.zst php-mozart-e40ae3649d62a933211e81d8ac773fdd86ff1dfb.zip | |
test(cli): add end-to-end integration tests for CLI commands
Add 23 integration tests using assert_cmd and predicates covering
about, validate, show, licenses, install, config, init, and
dump-autoload commands with shared test helpers and fixture projects.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'crates/mozart/tests/fixtures/with_lock')
| -rw-r--r-- | crates/mozart/tests/fixtures/with_lock/composer.json | 9 | ||||
| -rw-r--r-- | crates/mozart/tests/fixtures/with_lock/composer.lock | 56 |
2 files changed, 65 insertions, 0 deletions
diff --git a/crates/mozart/tests/fixtures/with_lock/composer.json b/crates/mozart/tests/fixtures/with_lock/composer.json new file mode 100644 index 0000000..1653318 --- /dev/null +++ b/crates/mozart/tests/fixtures/with_lock/composer.json @@ -0,0 +1,9 @@ +{ + "name": "test/locked-project", + "description": "A project with a lock file", + "license": "MIT", + "require": { + "php": ">=8.1", + "psr/log": "^3.0" + } +} diff --git a/crates/mozart/tests/fixtures/with_lock/composer.lock b/crates/mozart/tests/fixtures/with_lock/composer.lock new file mode 100644 index 0000000..0e4f7aa --- /dev/null +++ b/crates/mozart/tests/fixtures/with_lock/composer.lock @@ -0,0 +1,56 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "ca27a8c1835db5af5fd5efe936f402b4", + "packages": [ + { + "name": "psr/log", + "version": "3.0.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/log.git", + "reference": "f16e1d5863e37f8d8c2a01719f5b34baa2b714d3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/log/zipball/f16e1d5863e37f8d8c2a01719f5b34baa2b714d3", + "reference": "f16e1d5863e37f8d8c2a01719f5b34baa2b714d3", + "shasum": "" + }, + "require": { + "php": ">=8.0.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Psr\\Log\\": "src" + } + }, + "license": [ + "MIT" + ], + "description": "Common interface for logging libraries", + "homepage": "https://www.php-fig.org/", + "keywords": [ + "log", + "psr", + "psr-3" + ], + "time": "2024-09-11T13:17:53+00:00" + } + ], + "packages-dev": [], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": {}, + "prefer-stable": false, + "prefer-lowest": false, + "platform": { + "php": ">=8.1" + }, + "platform-dev": {}, + "plugin-api-version": "2.6.0" +} |
