BrainMonkey

Mocking utility for PHP functions and WordPress plugin API

MIT License

Downloads
7M
Stars
288
Committers
15

Bot releases are visible (Hide)

BrainMonkey - v1.3.0

Published by gmazzap over 8 years ago

Fixed

  • Expectation state persists among tests (#6)

Added

  • Functions::when()->justEcho() to mock a function making it echo some value
  • Functions::when()->echoArg() to mock a function making it echo one of received arguments
BrainMonkey - v1.2.1

Published by gmazzap over 9 years ago

BrainMonkey - v.1.2.0

Published by gmazzap over 9 years ago

  • Allow whenHappen() for added hooks
  • Make current_filter() always return original hook name, even when hook names contain special chars, see #1
BrainMonkey - v.1.1.4

Published by gmazzap over 9 years ago

Improved hooks name sanitization, to avoid names collision.

BrainMonkey - v.1.1.3

Published by gmazzap over 9 years ago

Hamcrest-PHPUnit conflict has been solved. No need for the hack introduced in v1.1.2

BrainMonkey - v.1.1.2

Published by gmazzap over 9 years ago

Fixed bug reported in #1

BrainMonkey - v.1.1.1

Published by gmazzap over 9 years ago

BrainMonkey - v.1.1.0

Published by gmazzap over 9 years ago

Moved all setup to Monkey class

BrainMonkey - First Release

Published by gmazzap over 9 years ago

Package Rankings
Top 0.72% on Packagist.org
Badges
Extracted from project README
PHP Quality Assurance codecov