Skip to content

expect callableNotToThrow does not modify assertion count #56

Description

@ericb

When testing that an exception is not thrown, the assertion count is not raised. This is true for both variants on the latest 2.2 release:

verify($callable)->callableDoesNotThrow(\Exception::class);
expect($callable)->callableNotToThrow(\Exception::class);

Here is a sample test:

public function testCallableDoesNotThrow()
{
    $testFunction = function() {};
    expect($testFunction)->callableNotToThrow(\Exception::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