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

Assert Throws Laravel Package

codeception/assert-throws

Assert that a callable throws the expected exception without try/catch boilerplate. codeception/assert-throws adds assertThrows and assertDoesNotThrow helpers for Codeception and PHPUnit tests, with clear failure messages and optional checks on exception class and message.

View on GitHub
Deep Wiki
Context7
1.6.0

What's Changed

1.5.0
  • Support PHPUnit 12
1.4.0
  • Support PHPUnit 11
1.3.0
  • Support PHPUnit 10
1.2.1
1.2.0

What's Changed

Full Changelog: https://github.com/Codeception/AssertThrows/compare/1.1.0...1.2.0

1.1.0

Changes from #11

  • Added two new assertions assertDoesNotThrow and assertDoesNotThrowWithMessage.
  • Updated documentation and corresponding tests.
  • Now these assertions can be used with callable functions that expect parameters!
  • Removed support for PHPUnit 6 version, since functionalities present since PHP 7*.1 were required.
  • Added phpunit.xml file.
  • Tested on php 7.3 and 7.4 .
1.0.3
1.0.2
  • Supports PHPUnit 8
  • Fixed issue #4
1.0.1
1.0
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.
oxygen/data
oxygen/core
jengo/base
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge
simple-as-fuck/php-performance-log
hsluv/hsluv
seampact/codegen
seampact/hooks
seampact/ir
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table