Skip to content

Warn about impossible data provider #6211

@dereuromark

Description

@dereuromark

We had a hidden issue due to the dataprovider not being run and its data tested

#[DataProvider('falseyValues')]
public function testRenderSerializeWithFalseyValue(): void
{

So effectively, the test only ran with the default value in there.

Would it be feasable for the testing harness to issue a warning (e.g. risky), if the data provider attached is "unused"?
As it would make no sense and is usually a dev or merge error of sorts.

Metadata

Metadata

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions