Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Update NotEmptyTest tests to use data providers where possible #5879

Closed

Conversation

dstockto
Copy link

Rather than making a dozen or so assertions in a test, converting to @dataProvider tests means we will know each value that fails for each test.

I refactored the tests for the NotEmpty validator to use dataproviders which means it should now show 245 tests with 253 assertions compared to 28 tests with 248 assertions previously.

Additionally, I removed the two test classes that were defined at the end of this file and replaced them with PHPUnit mock objects in the tests where they were being used.

@weierophinney weierophinney added this to the 2.2.6 milestone Mar 3, 2014
@Ocramius Ocramius self-assigned this Mar 4, 2014
@Ocramius Ocramius closed this in fbe0a0a Mar 4, 2014
Ocramius added a commit that referenced this pull request Mar 4, 2014
@Ocramius
Copy link
Member

Ocramius commented Mar 4, 2014

@dstockto thanks! Awesome!

@dstockto dstockto deleted the notEmptyDataProviderTests branch March 4, 2014 16:33
gianarb pushed a commit to zendframework/zend-validator that referenced this pull request May 15, 2015
gianarb pushed a commit to zendframework/zend-validator that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants