handbook/references/behat-steps/then-stdout-stderr-should-be-a-version-string-w.md
Pascal Birchler 264cb131bf
Fix handbook information architecture
- Organize files in folders according to the desired structure
- Use directory iterator to loop through all files and folders (makes generation more robust)
2025-06-25 15:38:39 +02:00

4.6 KiB

Then /^(STDOUT|STDERR) should be a version string (<|<=|>|>=|==|=|!=|<>) ([+\w.{}-]+)$/

Expect STDOUT or STDERR to be a version string comparing to the given version.


Usage

Scenario: My example scenario
  Given a WP install
  When I run `wp core version
  Then STDOUT should be a version string >= 6.8

Behat steps documentation is generated from the WP-CLI codebase on every release. To suggest improvements, please submit a pull request.