public function testProcessResults() { $printer = $this->getMock('\\Phprtest\\Printer\\PrinterInterface'); $printer->expects($this->once())->method('render')->will($this->returnValue('value')); $this->instance->setPrinter($printer); $this->assertEquals($printer, $this->instance->getPrinter()); $this->assertEquals('value', $this->instance->processResults()); }