phockito icon indicating copy to clipboard operation
phockito copied to clipboard

PHP Mocking library based on Mockito

Results 14 phockito issues
Sort by recently updated
recently updated
newest added
trafficstars

- Pull in via composer rather than directly in-lining Hamcrest (fixes #38) - Fix references to old classnames (Hamcrest_Matcher -> Hamcrest\Matcher and Hamcrest_Core_IsInstanceOf -> Hamcrest\Core\IsInstanceOf) - Resolves the very important...

Phockito::include_hamcrest(true) creates in global namespace argOfTypeThat() that calls HamcrestTypeBridge::argOfTypeThat(). However argOfTypeThat() is missing return statement. Fixed. Added test to cover the issue.

The example shown in the README: Phockito::when($stub)->Foo(argOfTypeThat('B', is(equalTo($b))))->return('Zap'); Does not work. Simply missing return statement. Fixed. Added test case. Pull request #39. I'm a github noob ;-)

It would be neat if `hamcrest/hamcrest-php` composer required instead of committed to the source code.

Is it supposed to be: fockito fuhckito (like vietnamise pho) pohckito something else? Nice project by the way - certainly helps reduce context switching when moving between PHP/Java.

in the docs for verify the type for the first argument is `Phockito_Mock`: ``` /** * Verify builder. Takes a mock instance and an optional number of times to verify...

when running a verify this error crashes all tests. Our project don't use Hamcrest so it must be something from with in this project that is configured wrong.

As it turns out, IntelliJ ignores the second `@method` defined here, so I've moved each declaration to its own `@method` line. It's a bit more verbose, but at least it...

I've added some basic verification mode functionality, to allow matching exact, max and min number of calls. I haven't implemented `only()` or `noMoreInteractions()`, as they require a bit more effort...

Hi, These changes are all, I believe, entirely non-functional (i.e. they don't change any Phockito behaviour), they just satisfy static analysis tools (such as provided by PHPStorm / IntelliJ). Many...