aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart/tests/fixtures/with_dev_deps
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-02-21 20:54:29 +0900
committernsfisis <nsfisis@gmail.com>2026-02-21 20:54:29 +0900
commite40ae3649d62a933211e81d8ac773fdd86ff1dfb (patch)
tree22713882537531c2b0f0a55248045d9f280ce3fe /crates/mozart/tests/fixtures/with_dev_deps
parent3c8ce2b72daccccc88278b8dfbff1a1acc39096c (diff)
downloadphp-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_dev_deps')
-rw-r--r--crates/mozart/tests/fixtures/with_dev_deps/composer.json12
-rw-r--r--crates/mozart/tests/fixtures/with_dev_deps/composer.lock80
-rw-r--r--crates/mozart/tests/fixtures/with_dev_deps/vendor/composer/installed.json32
3 files changed, 124 insertions, 0 deletions
diff --git a/crates/mozart/tests/fixtures/with_dev_deps/composer.json b/crates/mozart/tests/fixtures/with_dev_deps/composer.json
new file mode 100644
index 0000000..09126f2
--- /dev/null
+++ b/crates/mozart/tests/fixtures/with_dev_deps/composer.json
@@ -0,0 +1,12 @@
+{
+ "name": "test/dev-project",
+ "description": "A project with dev dependencies",
+ "license": "MIT",
+ "require": {
+ "php": ">=8.1",
+ "psr/log": "^3.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^11.0"
+ }
+}
diff --git a/crates/mozart/tests/fixtures/with_dev_deps/composer.lock b/crates/mozart/tests/fixtures/with_dev_deps/composer.lock
new file mode 100644
index 0000000..d01e341
--- /dev/null
+++ b/crates/mozart/tests/fixtures/with_dev_deps/composer.lock
@@ -0,0 +1,80 @@
+{
+ "_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": "ed17fac2f30232d69c31587151006a2f",
+ "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",
+ "time": "2024-09-11T13:17:53+00:00"
+ }
+ ],
+ "packages-dev": [
+ {
+ "name": "phpunit/phpunit",
+ "version": "11.0.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/phpunit.git",
+ "reference": "fake000000000000000000000000000000000001"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://fake.example.com/phpunit-11.0.0.zip",
+ "reference": "fake000000000000000000000000000000000001",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=8.2"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "PHPUnit\\": "src/"
+ }
+ },
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "description": "The PHP Unit Testing framework",
+ "time": "2024-02-02T06:38:00+00:00"
+ }
+ ],
+ "aliases": [],
+ "minimum-stability": "stable",
+ "stability-flags": {},
+ "prefer-stable": false,
+ "prefer-lowest": false,
+ "platform": {
+ "php": ">=8.1"
+ },
+ "platform-dev": {},
+ "plugin-api-version": "2.6.0"
+}
diff --git a/crates/mozart/tests/fixtures/with_dev_deps/vendor/composer/installed.json b/crates/mozart/tests/fixtures/with_dev_deps/vendor/composer/installed.json
new file mode 100644
index 0000000..efa3905
--- /dev/null
+++ b/crates/mozart/tests/fixtures/with_dev_deps/vendor/composer/installed.json
@@ -0,0 +1,32 @@
+{
+ "packages": [
+ {
+ "name": "phpunit/phpunit",
+ "version": "11.0.0",
+ "version_normalized": "11.0.0.0",
+ "type": "library",
+ "install-path": "../phpunit/phpunit",
+ "autoload": {
+ "psr-4": {
+ "PHPUnit\\": "src/"
+ }
+ }
+ },
+ {
+ "name": "psr/log",
+ "version": "3.0.2",
+ "version_normalized": "3.0.2.0",
+ "type": "library",
+ "install-path": "../psr/log",
+ "autoload": {
+ "psr-4": {
+ "Psr\\Log\\": "src"
+ }
+ }
+ }
+ ],
+ "dev-package-names": [
+ "phpunit/phpunit"
+ ],
+ "dev": true
+}