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

Assert Throws Laravel Package

codeception/assert-throws

Adds assertThrows-style assertions to Codeception, letting you easily verify exceptions in tests. Assert the exception type and optionally message/code when running a callable, making negative-path testing clearer and less verbose.

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.
sentix/ai-chatbot
terminal42/code-quality-tools
codifyo/ts-generator-bundle
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky