Weave 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 Service Create Trait Laravel Package

pkly/phpunit-service-create-trait

A PHPUnit 12+ trait (PHP 8.4+) that builds real service instances with auto-mocked constructor and #[Required] dependencies. Dependencies stay as invisible stubs until fetched, so you only get mock verification where you ask for it.

View on GitHub
Deep Wiki
Context7
Package
Score
Description
Stars
Likes
Forks
Downloads
Issues
Score
Opportunity
License
Last Release
graham-campbell/testbench-core 0.87 Laravel TestBench Core by Graham Campbell provides reusable testing functionality for Laravel packages and applications, supporting PHPUnit 9-12 and Laravel 8-13 on PHP 7.4-8.5. 0 17 — 5K — 9.0 51.4 — —
View on GitHub
stephenjude/api-test-helper 0.87 stephenjude/api-test-helper is a Laravel package that streamlines API testing with convenient helpers and expressive assertions for HTTP and JSON responses. It reduces boilerplate around authentication, request building, and response checks, helping you write cleaner, faster, more reliable API test... 47 — 1 — 0 0.3 — MIT 3 years ago
View on GitHub
phpstan/phpstan-phpunit 0.87 PHPStan extension for PHPUnit that improves mock object and assert type inference, supports MockBuilder and phpDoc intersections, and adds optional strict rules for more precise, framework-aware static analysis. 546 550 58 6M 34 44.3 79.3 MIT 1 month ago
View on GitHub
imanghafoori/laravel-makesure 0.86 — 21 21 3 44 1 1.0 6.6 MIT 2 years ago
View on GitHub
herrera-io/phpunit-test-case 0.86 PHPUnit TestCase class and Extras trait that add helpers for common test chores: create/delete temporary files and directories, call protected/private methods, and get/set protected/private properties. Use as a base class or mix into your own test case. 1 1 0 32 0 0.0 12.0 MIT —
View on GitHub
belsym/test-bundle 0.86 — 1 1 0 0 0 0.0 — MIT —
View on GitHub
Context7
eloquent/phony-phpunit 0.85 Integration of the Phony mocking/stubbing library with PHPUnit, providing helpers to use Phony in your test suite. Note: this package is no longer maintained; see the linked statement and consider alternatives or the main Phony repo. 6 6 3 713 0 1.6 19.7 MIT 5 years ago
View on GitHub
Context7
nnjeim/respond 0.85 — 5 5 1 6 0 0.7 4.2 MIT 5 years ago
View on GitHub
crudly/testly 0.85 A simple test package placeholder for crudly/testly. Currently contains minimal scaffolding and documentation (“This is a test”) and may be used for experimentation or as a starting point for future CRUD-related tooling. 0 0 0 0 0 0.3 — MIT 6 years ago
View on GitHub
hamcrest/hamcrest-php 0.85 Official PHP port of Hamcrest, the matching library originally written for Java. Provides readable matchers like equalTo, containsString and is for expressive assertions in PHP tests, with global proxy functions and MatcherAssert support. 6,981 7,014 47 11M 10 44.1 53.7 NOASSERTION 4 months ago
View on GitHub
Context7
lastdragon-ru/phpunit-extensions 0.85 PHPUnit extensions for PHP projects, adding extra test utilities and helpers to streamline assertions, fixtures, and test setup. Designed to integrate cleanly with PHPUnit and improve developer productivity in automated testing workflows. 0 0 0 28 0 0.0 20.2 MIT —
View on GitHub
phpunit/phpunit-dom-assertions 0.85 Adds expressive DOM assertions to PHPUnit for testing HTML and XML output, letting you assert elements, attributes, text content, and structure using a fluent, readable API built on Symfony's DomCrawler and CssSelector components. 29 — 13 — 1 6.3 — NOASSERTION 8 months ago
sebastian/global-state 0.85 Snapshot and restore PHP global state with sebastian/global-state, the standalone component extracted from PHPUnit. Capture globals, superglobals, static properties, and constants for reliable test isolation. 6,591 6,592 18 24M 1 39.4 54.3 BSD-3-Clause 5 months ago
View on GitHub
phpunitgoodpractices/polyfill 0.85 Polyfill library for PHPUnit best practices, providing compatibility helpers and shims to keep test suites consistent across PHPUnit versions. Useful for package maintainers aiming for cleaner, more portable tests without forcing specific PHPUnit upgrades. 11 11 1 8K 6 2.1 28.5 MIT 3 years ago
View on GitHub
Context7
php-mock/php-mock 0.85 Mock built-in PHP functions like time() or rand() in tests by leveraging PHP’s namespace fallback: define namespaced replacements for unqualified calls. Works in non-global namespaces; supports common test frameworks via integrations (e.g., PHPUnit). 370 375 19 726K 3 13.0 47.8 WTFPL 9 months ago
View on GitHub
rybakit/phpunit-extras 0.85 Extend PHPUnit with custom annotations, placeholders, requirements, and expectations. Build and integrate your own @tags, version/package/expression-based requirements, and reusable expectation helpers. Optional support for composer/semver, package-versions, and symfony/expression-language. 47 47 1 579 0 21.5 18.0 MIT 1 month ago
View on GitHub
php-mock/php-mock-mockery 0.85 Integrates php-mock with Mockery to mock PHP built-in functions in tests. Create namespaced function mocks with PHPMockery::mock() and set expectations/returns, then call Mockery::close(). Supports only unqualified calls; define early if needed. 39 39 5 78K 2 1.9 45.4 WTFPL 1 year ago
View on GitHub
sebastian/object-reflector 0.84 sebastian/object-reflector lets you reflect an object's properties, including inherited, private, and protected ones. Install it via Composer to inspect and access object state that PHP's default reflection utilities don't easily expose. 6,271 6,277 3 25M 1 41.8 56.4 BSD-3-Clause 2 months ago
View on GitHub
robiningelbrecht/phpunit-pretty-print 0.84 A PHPUnit result printer that transforms default test output into clean, colorful, readable reports. See progress, failures, and timing at a glance, with less noise and more useful detail during every test run. Easy to install and configure via phpunit.xml. 77 — 2 — 1 8.4 — MIT 7 months ago
suin/php-expose 0.84 Expose helps PHPUnit tests access private/protected properties and methods in PHP objects. Use a simple fluent API to set non-public attributes and call hidden methods without changing production code. Requires PHP 5.3+ and installs via Composer. 5 5 1 84 0 0.1 16.2 — —
View on GitHub
Context7
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.
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel
draftsmaninc/draftsman
square-bit/laravel-volition
himito/laravel-mailman
htinlynn/genius-helper
maco-studios/hephaestus
adachsoft/php-code-style