Skip to content

Suggestion for Tests #11

@jonmchan

Description

@jonmchan

You may benefit from using @DataProvider for your tests. I believe it would save you lots of lines of code and allow you to make new scenarios by just adding 1 line of code to the array instead of having to re-write the whole assert statement.

Take a look:

https://phpunit.de/manual/3.7/en/writing-tests-for-phpunit.html#writing-tests-for-phpunit.data-providers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions