Download the PHP package jasonmccreary/laravel-test-assertions without Composer

On this page you can find all versions of the php package jasonmccreary/laravel-test-assertions. 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-test-assertions

Laravel Test Assertions

A set of helpful assertions when testing Laravel applications.

Requirements

Your application must be running the latest LTS version (5.5) or higher and using Laravel's testing harness.

Installation

You may install these assertions with Composer by running:

Afterwards, add the trait to your base TestCase class:

Assertions

This package adds several assertions helpful when writing Http Tests.

Verifies the action for a given controller performs validation using the given form request.

Verifies that the corresponding action/controller, for a given route name performs the validation using the given form request.

Verifies the action for a given controller uses the given middleware or set of middleware.

Verifies the route for a given route name uses all the given middlewares or only the given set of middlewares.

Verifies the expected subset of validation rules for fields are within a set of validation rules. Rules may be passed as a delimited string or array.

Verifies the expected set of validation rules for fields exactly match a set of validation rules. Rules may be passed as a delimited string or array.

Verifies the rule or rules contains an instance of the given Rule class.

Matchers

Matches an argument is the same as $model. When called without $model, will match any argument of type Illuminate\Database\Eloquent\Model.

Matches an argument equals $collection. When called without $collection, will match any argument of type Illuminate\Support\Collection.

Matches an argument equals $collection. When called without $collection, will match any argument of type \Illuminate\Database\Eloquent\Collection.

Creation Methods

This package also provides methods for quickly creating common objects used within Laravel application to use when testing.

Creates an instance of the given Form Request class with the given request data.

Support Policy

Starting with version 2, this package will only support the latest stable version of Laravel (currently Laravel 8). If you need to support older versions of Laravel, you may use version 1 or upgrade your application (try using Shift).

This package still follows semantic versioning. However, it does so with respect to its own code. Any breaking changes will increase its major version number. Otherwise, minor version number increases will contain new features. This includes changes for future versions of Laravel.


All versions of laravel-test-assertions with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/testing Version ^10.0|^11.0
mockery/mockery Version ^1.4.4
phpunit/phpunit Version ^10.1|^11.0
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 jasonmccreary/laravel-test-assertions contains the following files

Loading the files please wait ....