Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Phpunit Easymock Laravel Package

mnapoli/phpunit-easymock

A lightweight bridge between PHPUnit and EasyMock for PHP. Quickly create, replay, and verify mocks from your test cases with minimal boilerplate, helping you write clear unit tests using the familiar EasyMock-style workflow.

View on GitHub
Deep Wiki
Context7
1.5.0
1.4.0

Support PHP 8

1.3.0

Upgrade to PHPUnit 8|9, support PHP 7.3 and up.

1.2.0

Compatibility with PHPUnit 8.

1.1.0

#10 Compatibility with PHPUnit 7

1.0.0

Stable version for PHPUnit 6.

0.2.3

#5 Fix test for compatibility with latest version of PHPUnit

0.2.2

Fix #4: Compatibility with PHPUnit 5.4 and phpunit/phpunit-mock-objects 3.2

0.2.1

#3 Compatibility with PHPUnit 5

0.2.0
  • #1 and #2: EasyMock was rewritten as a trait
  • PHP 5.3 support dropped
0.1.4

Added EasyMock::spy() to create a spy instead of a mock: it asserts that methods are called at least once.

0.1.3

Wrong tag :)

0.1.2

It is possible to call the mock() method again on an existing mock:

$mock = EasyMock::mock('My\Class');

$mock = EasyMock::mock($mock, [
    'sayHello' => 'Hello',
]);
0.1.1

Support for throwing exceptions in mocked methods.

0.1.0

First release.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope
anil/file-picker
broqit/fields-ai