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.