StackOverflow Questions for Tag: prophecy

alexandra
alexandra

Reputation: 1192

How to mock a method from the class you are testing with Prophecy?

Score: 8

Views: 7914

Answers: 3

Read More
Pablo Rodriguez V.
Pablo Rodriguez V.

Reputation: 358

PHPUnit - Mocking a trait

Score: 5

Views: 12411

Answers: 3

Read More
user_51
user_51

Reputation: 5

Symfony ObjectProphecy treats array and object differently - can't change array which was initialised in setUp method

Score: 0

Views: 68

Answers: 1

Read More
user_51
user_51

Reputation: 5

Add value to array in Symfony TestCase class in test function if the array was initialised in setUp method

Score: 0

Views: 113

Answers: 1

Read More
Skkrimon
Skkrimon

Reputation: 11

PHP Prophecy test void method should be called

Score: 1

Views: 260

Answers: 0

Read More
romand
romand

Reputation: 29

PHP Prophecy ->reveal() method - should I put the expectations (like "willReturn", "ShouldBeCalled") before or after it?

Score: 0

Views: 581

Answers: 1

Read More
Bogdan  Dubyk
Bogdan Dubyk

Reputation: 5530

phpspec/prophecy stub method call with different parameteres

Score: 0

Views: 483

Answers: 0

Read More
crossi100
crossi100

Reputation: 98

Prophecy - Expect that no method will be called on an object

Score: 3

Views: 2503

Answers: 1

Read More
dargue3
dargue3

Reputation: 2922

PHPUnit prophesize a method without exact arguments

Score: 11

Views: 7054

Answers: 2

Read More
sisko
sisko

Reputation: 9900

phpunit Error: Class 'Prophecy\Prophet' not found

Score: 0

Views: 622

Answers: 0

Read More
luchaninov
luchaninov

Reputation: 6786

Prophecy autocomplete in PhpStorm

Score: 1

Views: 2007

Answers: 3

Read More
Jimmix
Jimmix

Reputation: 6506

PHP Prophecy mocking not existing class

Score: 1

Views: 305

Answers: 0

Read More
Stevan Tosic
Stevan Tosic

Reputation: 7199

Test service in Symfony with private method

Score: 0

Views: 1055

Answers: 1

Read More
Stevan Tosic
Stevan Tosic

Reputation: 7199

Symfony PhpUnit to mock PHP built-in method

Score: 0

Views: 366

Answers: 1

Read More
mevr
mevr

Reputation: 1125

TypeError: Return value of class::functionName() must be an instance of /Interface, null returned

Score: 4

Views: 3210

Answers: 1

Read More
zambliner
zambliner

Reputation: 466

Unit testing guzzle http promises callbacks

Score: 3

Views: 1207

Answers: 0

Read More
Rafael
Rafael

Reputation: 37

How should I prophesy the sort method?

Score: 0

Views: 164

Answers: 0

Read More
Rafael
Rafael

Reputation: 37

I do not know how to test the create query builder

Score: 1

Views: 1632

Answers: 1

Read More
Knight
Knight

Reputation: 576

How to make a Test Double for the RequestHandlerInterface class in Zend Expressive using Prophesy?

Score: 1

Views: 294

Answers: 1

Read More
Daniela
Daniela

Reputation: 454

Prophecy framework and drupal 7

Score: 0

Views: 40

Answers: 0

Read More
PreviousPage 1Next