Download the PHP package synaq/mockery-extras without Composer

On this page you can find all versions of the php package synaq/mockery-extras. 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 mockery-extras

mockery-extras

Extra matching tools for the Mockery framework.

ArrayPath

Matches an array if an element identified by the specified array path contains the expected value.

The syntax for array paths is as defined by mathiasgrimm/arraypath.

Example

The above invocation would match an array defined thus:

These need not be the only elements in the array, nor does bar need to be the only child element of foo. This allows tests to be crafted with very discrete assertions regarding the structure of an array passed to a dependency of the object class under test.

JsonPath

Matches a JSON string if a child node identified by the given jsonpath expression contains the expected value.

The syntax and behaviour are derived from the skyscanner/jsonpath library. The matcher uses the library's SmartGet behaviour by default, meaning that if a given path does not branch, the value will be returned directly, rather than a single element array containing the value, as is the usual jsonpath behaviour.

Please see documentation for the library package for more details on usage.

Example

The above invocation would match the following JSON string:

As with the ArrayPath matcher, the JSON string may encode any other arbitrary data. The string will always be matched as long as the given jsonpath expression leads to the expected value.


All versions of mockery-extras with dependencies

PHP Build Version
Package Version
Requires mathiasgrimm/arraypath Version ^2
mockery/mockery Version ^1.3
galbar/jsonpath Version ^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 synaq/mockery-extras contains the following files

Loading the files please wait ....