public function testDecrypt() { $data = 'data'; $encryptedData = 'd1a2t3a4'; $this->encryptorInterfaceMock->expects($this->once())->method('decrypt')->with($encryptedData)->will($this->returnValue($data)); $this->assertEquals($data, $this->info->decrypt($encryptedData)); }