Download the PHP package ray/fake-module without Composer
On this page you can find all versions of the php package ray/fake-module. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ray/fake-module
More information about ray/fake-module
Files in ray/fake-module
Download ray/fake-module
More information about ray/fake-module
Files in ray/fake-module
Vendor ray
Package fake-module
Short Description this is Ray.Di module for developing mocking feature.
License BSD-3-Clause
Package fake-module
Short Description this is Ray.Di module for developing mocking feature.
License BSD-3-Clause
Please rate this library. Is it a good library?
Informations about the package fake-module
Ray.FakeModule
This package is deprecated. Please use Ray.TestDouble instead.
Installation
Composer install
$ composer require ray/fake-module
Module install
Usage
Fake a resource uri.
@FakeResource
annotation fake uri for building mock feature.
Annotate target resource, which you want to fake, with @FakeResource
annotation. Then, 'Fake' prefixed resource in same namespace will be called via interceptor when original resource method called.
this feature heavily depends on BEAR.Resource [https://github.com/bearsunday/BEAR.Resource]
Real resource
Fake resource
Fake a class method.
@FakeClass
annotation work as same as @FakeResource
.
Real class.
Fake class.
Requirements
- PHP 5.5+
- hhvm
All versions of fake-module with dependencies
PHP Build Version
Package Version
The package ray/fake-module contains the following files
Loading the files please wait ....