Skip to content

[enhancement] Test message when exception is thrown #16

@electricjones

Description

@electricjones

It would be great to be able to:

$this->specify("it throws an exception without a default connection", function () {
   // Do something
}, ['throws' => 'Spider\Exceptions\ConnectionNotFoundException', 'message' => 'The exception message']);

And I'm happy to put together a PR if you let me know what syntax/api you would like (ie message, exception message [throws => ['class', 'message']] as well as ['throws' => 'class']

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions