Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,28 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## v1.19.0

- Fix issue introduced in v1.18.1 with packages being moved to `require-dev`.

New projects that depend on `alleyinteractive/mantle-framework` should
require on the newly created `mantle-framework/testing-dependencies` package. Projects
that depend on `mantle-framework/testkit` are not affected. Because
`mantle-framework/testing-dependencies` also requires PHPUnit, you can also drop
that as a dependency if you were requiring it directly.

To upgrade your project, run the following commands:

```bash
# If you were requiring PHPUnit directly.
composer remove phpunit/phpunit --dev

# Require the new testing dependencies package.
composer require alleyinteractive/mantle-framework/testing-dependencies --dev
```

Projects that depend only on Mantle Testkit (`mantle-framework/testkit`) are not affected.

## v1.18.2

### Fixed
Expand Down
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@
"phpunit/phpunit": ">=13.0.0"
},
"suggest": {
"brianium/paratest": "Run PHPUnit tests in parallel",
"illuminate/view": "For Blade templating"
"mantle-framework/testing-dependencies": "For additional packages used with the Mantle testing framework."
},
"minimum-stability": "dev",
"prefer-stable": true,
Expand Down
339 changes: 339 additions & 0 deletions src/mantle/testing-dependencies/LICENSE

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions src/mantle/testing-dependencies/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Testing Dependencies

This package contains testing dependencies required for the Mantle Framework. For
projects that depend on `alleyinteractive/mantle-framework`, this package will be
need to be required within the `require-dev` section of your `composer.json` file.
Requiring this package will alleviate the need to manually include each testing
dependency individually.

For projects that depend on `mantle-framework/testkit`, this package is already
included as a dependency and does not need to be added separately.
46 changes: 46 additions & 0 deletions src/mantle/testing-dependencies/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"name": "mantle-framework/testing-dependencies",
"description": "The Mantle Framework Testing Dependencies Package",
"license": "GPL-2.0-or-later",
"type": "library",
"keywords": [
"testing",
"mantle"
],
"authors": [
{
"name": "Alley",
"email": "mantle@alley.com"
}
],
"require": {
"php": "^8.2",
"alleyinteractive/composer-wordpress-autoloader": "^1.0",
"fakerphp/faker": "^1.24",
"filp/whoops": "^2.18.1",
"myclabs/deep-copy": "^1.13",
"nunomaduro/termwind": "^1.15.1 || ^2.0",
"phpunit/phpunit": "^10.5.62 || ^11.5.50 || ^12.5.8",
"spatie/phpunit-snapshot-assertions": "^4.2 || ^5.1",
"symfony/css-selector": "^7.2.0",
"symfony/http-foundation": "^7.3.7"
},
"suggest": {
"brianium/paratest": "For running tests in parallel.",
"mantle-framework/testkit": "For running tests against a WordPress install without Mantle",
"nunomaduro/collision": "For better PHPUnit printing."
},
"config": {
"allow-plugins": {
"alleyinteractive/composer-wordpress-autoloader": true
},
"sort-packages": true
},
"extra": {
"wordpress-autoloader": {
"autoload": {
"Mantle\\Testing": "./"
}
}
}
}
57 changes: 28 additions & 29 deletions src/mantle/testing/composer.json
Original file line number Diff line number Diff line change
@@ -1,56 +1,55 @@
{
"name": "mantle-framework/testing",
"description": "The Mantle Framework Testing Package",
"keywords": ["testing", "mantle"],
"license": "GPL-2.0-or-later",
"type": "library",
"keywords": [
"testing",
"mantle"
],
"authors": [
{
"name": "Alley",
"email": "mantle@alley.com"
}
],
"require": {
"php": "^8.2",
"alleyinteractive/composer-wordpress-autoloader": "^1.0",
"myclabs/deep-copy": "^1.13",
"filp/whoops": "^2.18.1",
"mantle-framework/contracts": "^1.0",
"mantle-framework/database": "^1.0",
"mantle-framework/faker": "^1.0",
"mantle-framework/http-client": "^1.0",
"mantle-framework/http": "^1.0",
"mantle-framework/http-client": "^1.0",
"mantle-framework/support": "^1.0",
"nunomaduro/termwind": "^1.15.1 || ^2.0",
"symfony/css-selector": "^7.2.0",
"spatie/phpunit-snapshot-assertions": "^4.2 || ^5.1"
},
"extra": {
"wordpress-autoloader": {
"autoload": {
"Mantle\\Testing": "./"
}
}
"mantle-framework/testing-dependencies": "^1.0"
},
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "Alley",
"email": "mantle@alley.com"
}
],
"suggest": {
"nunomaduro/collision": "For better PHPUnit printing.",
"brianium/paratest": "For running tests in parallel.",
"mantle-framework/console": "Required to assert console commands.",
"mantle-framework/testkit": "For running tests against a WordPress install without Mantle",
"brianium/paratest": "For running tests in parallel.",
"nunomaduro/collision": "For better PHPUnit printing.",
"phpunit/phpunit": "Required to use assertions and run tests."
},
"config": {
"allow-plugins": {
"alleyinteractive/composer-wordpress-autoloader": true
},
"sort-packages": true
},
"autoload": {
"psr-4": {
"Mantle\\Testing\\": "./"
},
"files": [
"autoload.php"
]
},
"config": {
"allow-plugins": {
"alleyinteractive/composer-wordpress-autoloader": true
},
"sort-packages": true
},
"extra": {
"wordpress-autoloader": {
"autoload": {
"Mantle\\Testing": "./"
}
}
}
}
44 changes: 24 additions & 20 deletions src/mantle/testkit/composer.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
{
"name": "mantle-framework/testkit",
"description": "The Mantle Framework Testkit Package",
"keywords": ["testing", "mantle"],
"license": "GPL-2.0-or-later",
"type": "library",
"keywords": [
"testing",
"mantle"
],
"authors": [
{
"name": "Alley",
"email": "mantle@alley.com"
}
],
"require": {
"php": "^8.2",
"alleyinteractive/composer-wordpress-autoloader": "^1.0",
Expand All @@ -13,17 +23,18 @@
"mantle-framework/faker": "^1.0",
"mantle-framework/support": "^1.0",
"mantle-framework/testing": "^1.0",
"mantle-framework/testing-dependencies": "^1.0",
"nunomaduro/collision": "^6.0 || ^7.0 || ^8.0",
"phpunit/phpunit": "^10.5.62 || ^11.5.50 || ^12.5.8",
"symfony/http-foundation": "^7.3.7"
},
"extra": {
"wordpress-autoloader": {
"autoload": {
"Mantle\\Testkit": "./"
}
}
"conflict": {
"alleyinteractive/mantle-framework": "*"
},
"suggest": {
"alleyinteractive/mantle-framework": "For the full Mantle Framework, require the base package instead."
},
"minimum-stability": "dev",
"autoload": {
"psr-4": {
"Mantle\\Testkit\\": "./"
Expand All @@ -32,24 +43,17 @@
"autoload.php"
]
},
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "Alley",
"email": "mantle@alley.com"
}
],
"config": {
"allow-plugins": {
"alleyinteractive/composer-wordpress-autoloader": true
},
"sort-packages": true
},
"conflict": {
"alleyinteractive/mantle-framework": "*"
},
"minimum-stability": "dev",
"suggest": {
"alleyinteractive/mantle-framework": "For the full Mantle Framework, require the base package instead."
"extra": {
"wordpress-autoloader": {
"autoload": {
"Mantle\\Testkit": "./"
}
}
}
}
Loading