2017 © Pedro Peláez
 

library phpstan-phony

PHPStan configuration for Phony.

image

eloquent/phpstan-phony

PHPStan configuration for Phony.

  • Wednesday, July 11, 2018
  • by ezzatron
  • Repository
  • 2 Watchers
  • 3 Stars
  • 5,508 Installations
  • PHP
  • 9 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 6 Versions
  • 42 % Grown

The README.md

No longer maintained

This package is no longer maintained. See [this statement] for more info., (*1)

[this statement]: https://gist.github.com/ezzatron/713a548735febe3d76f8ca831bc895c0, (*2)

PHPStan configuration for Phony

![Current version image][version-image], (*3)

Installation

composer require --dev eloquent/phpstan-phony

Usage

  • When using phpstan/extension-installer, no configuration is necessary.
  • Alternatively, an 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:, (*4)

mock(ClassA::class)->get();
mock([ClassA::class, ClassB::class])->get();
partialMock(ClassA::class)->get();
partialMock([ClassA::class, ClassB::class])->get();
mockBuilder(ClassA::class)->get();
mockBuilder([ClassA::class, ClassB::class])->get();
mockBuilder(ClassA::class)->full();
mockBuilder([ClassA::class, ClassB::class])->full();
mockBuilder(ClassA::class)->partial();
mockBuilder([ClassA::class, ClassB::class])->partial();
mockBuilder(ClassA::class)->partialWith();
mockBuilder([ClassA::class, ClassB::class])->partialWith();

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

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

License

For the full copyright and license information, please view the LICENSE file., (*5)

The Versions

11/07 2018

dev-master

9999999-dev http://eloquent-software.com/phony/

PHPStan configuration for Phony.

  Sources   Download

MIT

The Requires

 

The Development Requires

test mock stub static analysis mocking double dummy fake stubbing spy

11/07 2018

0.3.0

0.3.0.0 http://eloquent-software.com/phony/

PHPStan configuration for Phony.

  Sources   Download

MIT

The Requires

 

The Development Requires

test mock stub static analysis mocking double dummy fake stubbing spy

03/07 2018

0.2.0

0.2.0.0 http://eloquent-software.com/phony/

PHPStan configuration for Phony.

  Sources   Download

MIT

The Requires

 

The Development Requires

test mock stub static analysis mocking double dummy fake stubbing spy

03/12 2017

0.1.1

0.1.1.0 http://eloquent-software.com/phony/

PHPStan configuration for Phony.

  Sources   Download

MIT

The Requires

 

The Development Requires

test mock stub static analysis mocking double dummy fake stubbing spy

16/11 2017

0.1.0

0.1.0.0 http://eloquent-software.com/phony/

PHPStan configuration for Phony.

  Sources   Download

MIT

The Requires

 

The Development Requires

test mock stub static analysis mocking double dummy fake stubbing spy

15/11 2017

dev-dynamic-class

dev-dynamic-class http://eloquent-software.com/phony/

PHPStan configuration for Phony.

  Sources   Download

MIT

The Requires

 

The Development Requires

test mock stub static analysis mocking double dummy fake stubbing spy