/** * @dataProvider providerTestGetCategoriesToExclude */ function testGetCategoriesToExclude($input, $expected_output) { add_category(1, (object) array('slug' => 'one')); add_category(2, (object) array('slug' => 'one')); add_category(3, (object) array('slug' => 'one')); $dbi = new ComicPressDBInterface(); $this->assertEquals($expected_output, $dbi->_get_categories_to_exclude($input)); }