$_GET, '_POST' => $_POST, '_COOKIE' => $_COOKIE, '_SERVER' => $_SERVER, '_FILES' => $_FILES ]); $this->container->set('request', $web_factory->newRequest()); $this->container->set('response', $web_factory->newResponse()); $this->view = new TestView($this->container); $this->friend = new Friend($this->view); } public function testGetOutput() { $this->friend->output = 'foo'; $this->assertEquals($this->friend->output, $this->friend->getOutput()); } public function testSetOutput() { $same = $this->view->setOutput('
'); $this->assertEquals($same, $this->view); $this->assertEquals('', $this->view->getOutput()); } public function testAppendOutput() { $this->view->setOutput('