/** * @dataProvider statusAndOutputProvider */ public function testPrintStatus($name, $success, $expectedLine, $expectedStatus) { $output = $this->getMock('Output', array('write', 'writeln')); $output->expects($this->once())->method('write')->with($expectedLine); $output->expects($this->once())->method('writeln')->with($expectedStatus); $fixture = new Progress($output, 10); $fixture->printStatus($name, $success); }