Download the PHP package xentral/laravel-testing without Composer

On this page you can find all versions of the php package xentral/laravel-testing. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-testing

Laravel Testing

Latest Version on Packagist Total Downloads GitHub Actions

This package provides comprehensive testing tools for Laravel applications, including OpenAPI validation, Behat feature testing, and Qase test reporting integration.

Installation

You can install the package via composer.

Usage

OpenAPI Validation

Automatically validate your API responses against OpenAPI schemas in your tests.

The Schema file will be determined in the following order:

Relative paths will be auto prefixed with the project base path (by default) **Basic example with PHPUnit:** **Basic example with Pest:** Pest does not support attributes (at least i couldn't figure it out). You need to use beforeEach to set the schema file path. ### Behat Feature Testing Write behavior-driven tests using Gherkin syntax alongside your PHPUnit tests. (Does not work with Pest yet) **Basic Usage:** **Feature File:** The example above will automatically load the feature file with the same name as the test class with `.feature` extension. This is our preferred behavior, but you can go another way by specifying the via the `FeatureFile` attribute on the class: #### Interactive Matcher Discovery The package includes a powerful interactive command to explore and search available Behat matchers: This command provides an interactive search interface where you can: - Type to search through matcher patterns and descriptions in real-time - Browse available matchers with their examples - View detailed information about each matcher including capture groups For non-interactive usage (useful in CI/CD): #### Adding Examples to Custom Matchers Document your custom Behat matchers with examples using the `#[Example]` attribute: The `Example` attribute accepts: - `stepText`: The exact step text that should match the pattern - `matches` (optional): Array of expected capture groups from the regex - `data` (optional): Additional metadata for the example #### Testing Your Matchers Ensure your custom matchers work correctly by adding tests using the `BehatMatcherChecker`: This test will: - Find all matchers in the specified directory - Validate that each `#[Example]` attribute matches its corresponding matcher pattern - Verify that capture groups are correctly extracted - Ensure regex patterns are valid ### Qase Test Run Reporter Integrate with Qase.io for comprehensive test reporting and management. Mark a PHPUnit test class with the `\Qase\PHPUnitReporter\Attributes\Suite` attribute, then it will be automatically reported to Qase.io when it is executed in `testops` mode. **PHPUnit Configuration:** More information can be found in the Qase PHPUnit Reporter [qase/phpunit-reporter](https://github.com/qase-tms/qase-phpunit/blob/main/composer.json). ### Testing ## Contributing ### Ideas/Roadmap Here are some ideas for future development: * Add support for Behat in Pest. * Add Support for Qase Test Suite in Pest * Add support for Outlines in the BehatDumper * Extend Qase test cases with complete behat scenario information if given Please see [CONTRIBUTING](CONTRIBUTING.md) for details. ### Security If you discover any security related issues, please email [email protected] instead of using the issue tracker. ## Credits - [Manuel Christlieb](https://github.com/bambamboole) - [All Contributors](../../contributors) ## License The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

All versions of laravel-testing with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2 || ^8.3
behat/behat Version ^3.14
driftingly/rector-laravel Version ^2.0
illuminate/console Version ^10.0|^11.0|^12.0
illuminate/http Version ^10.0|^11.0|^12.0
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/validation Version ^10.0|^11.0|^12.0
kirschbaum-development/laravel-openapi-validator Version ^1.0
laravel/prompts Version ^0.1.18|^0.2.0|^0.3.0
phpunit/phpunit Version ^10.5 || ^11.5 || ^12.5
qase/phpunit-reporter Version ^2.1
rector/rector Version ^2.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package xentral/laravel-testing contains the following files

Loading the files please wait ...