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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport