Skip to content
PHPStan configuration for Phony.
PHP Makefile
Branch: master
Clone or download
Latest commit 3f6a7a9 May 29, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/Type Proper support for PHPStan 0.10.x. Jul 3, 2018
test Update dependencies May 21, 2019
.gitattributes Basic support for static facade mocking. Nov 15, 2017
.gitignore Repo maintenance May 28, 2019
.php_cs
.travis.yml Repo maintenance May 28, 2019
CHANGELOG.md Prepare 0.5.0 release May 21, 2019
CONTRIBUTING.md Repo maintenance May 28, 2019
LICENSE Repo maintenance May 28, 2019
Makefile Repo maintenance May 29, 2019
README.md Refactored to take advantage of non-static getClass() methods in dyna… Nov 16, 2017
appveyor.yml Repo maintenance May 29, 2019
composer.json Repo maintenance May 29, 2019
kahlan-config.php Basic support for static facade mocking. Nov 15, 2017
phony.neon Refactored to take advantage of non-static getClass() methods in dyna… Nov 16, 2017

README.md

PHPStan configuration for Phony

Current version image Current build status image Current Windows build status image

Installation

Usage

Once installed, a simple include can be added to the PHPStan configuration:

includes:
  - vendor/eloquent/phpstan-phony/phony.neon

Features

This repo currently supports correct type information for the following Phony mocking use cases:

mock(ClassA::class)->get();
partialMock(ClassA::class)->get();
mockBuilder(ClassA::class)->get();
mockBuilder(ClassA::class)->full();
mockBuilder(ClassA::class)->partial();
mockBuilder(ClassA::class)->partialWith();

Phony::mock(ClassA::class)->get();
Phony::partialMock(ClassA::class)->get();
Phony::mockBuilder(ClassA::class)->get();
Phony::mockBuilder(ClassA::class)->full();
Phony::mockBuilder(ClassA::class)->partial();
Phony::mockBuilder(ClassA::class)->partialWith();

mock(ClassA::class)->methodA;
onStatic(mock(ClassA::class))->staticMethodA;

License

For the full copyright and license information, please view the LICENSE file.

You can’t perform that action at this time.