public function render() { foreach ($this->_mock as $idx => $row) { $Mock = new Mock(); $Mock->init($row, $this->_Uri); $ServiceHttp = new HTTPProtocol($Mock); $ServiceCurl = new Curl($Mock); $ServicePHP = new PHP($Mock); $this->_mock[$idx]['output_http'] = $ServiceHttp->output(); $this->_mock[$idx]['output_curl'] = $ServiceCurl->output(); $this->_mock[$idx]['output_php'] = $ServicePHP->output(); $this->_mock[$idx]['is_owner'] = $Mock->isOwner(); } }