Download the PHP package ray/test-double without Composer
On this page you can find all versions of the php package ray/test-double. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ray/test-double
More information about ray/test-double
Files in ray/test-double
Download ray/test-double
More information about ray/test-double
Files in ray/test-double
Vendor ray
Package test-double
Short Description An AOP powered test double library
License MIT
Package test-double
Short Description An AOP powered test double library
License MIT
Keywords test doublespy
Please rate this library. Is it a good library?
Informations about the package test-double
Ray.TestDouble
An AOP powered test double library for PHP
Installation
Composer install
$ composer require ray/test-double --dev
What is Spy?
A Spy is a test double that records every invocation made against it and can verify certain interactions took place after the fact.
Create Spy
You can do it directly with newInstance
or specify it with a binding.
By newInstance()
By SpyModule
Specify the target to spy on by interface or class name.
By Matcher
Specify the spying target using the Ray.Aop matcher.
Assertion
SpyLog::get($className, $methodName)
to get the log and make assertions.
All versions of test-double with dependencies
PHP Build Version
Package Version
The package ray/test-double contains the following files
Loading the files please wait ....