/** * @expectedException \RuntimeException */ public function testInvalidInput() { $output = m::mock('mako\\cli\\output\\Output'); $output->shouldReceive('getFormatter')->once()->andReturn(null); $table = new Table($output); $table->render(['Col1'], [['Cell1', 'Cell2']]); }