Notice how all of our current tests follow the same basic shape: we create a
TagParser instance, we call a
parse() method and pass input to it, and then we assert that the result matches what we expect. In these cases, we can drastically simplify our test class by reaching for PHPUnit data providers. Let's learn how in this lesson.