/** * @dataProvider providerTestDisplayKeys */ public function testDisplayKeys($enableKeys, $expected) { $values = array('key1' => array('a', 'bb'), 'key2' => array(true, 3), array(42, 51), 'key4' => array(null, 12), array(82, 86)); $table = new CliTable($values); $table->setHeaders(array('colA', 'colB')); $result = $table->displayKeys($enableKeys)->render(); $this->assertSame($expected, $result); }