Skip to content
This repository was archived by the owner on Jul 28, 2024. It is now read-only.

Asserting invalid form should throw better exception #3

@rozsival

Description

@rozsival

Using FormAsserts::assertValidForm on an invalid form in a presenter test case results with Uncaught Nette\NotImplementedException: Object serialization is not supported by class <presenterClassName> in <projectRoot>/vendor/nette/component-model/src/ComponentModel/Component.php:298

Dependencies:

  • nette/application: 3.0.2
  • nette/forms: 3.0.2

It would be much clearer if the test failed the same way as with phpunit core asserts simply saying that asserting caused the failure.

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