One question in short: can phpunit use multiple data provider when running test?
For example, I have a method called getById, and I need to run both successful and unsuc
You can add a comment to your dataProvider array, to provide the same functionality, while not requiring multiple dataProviders.
public static function DataProvider() { return array( 'Invalid Id' => array(123), 'Failed Id' => array(321), 'Id Not Provided' => array(NULL), ); }