public function testText() { $this->textHelper->expects($this->once())->method('processText')->with('test', 'domain')->will($this->returnValue('processed')); $this->assertEquals('processed', $this->helper->text('test', 'domain')); }