/** * @covers Context::getAttributes */ public function testGetAttributes() { $_SERVER['REQUEST_METHOD'] = 'GET'; $_GET['name'] = "fruition sciences"; $_POST['value'] = "Californie, Montpellier"; $actual = $this->ctx->getAttributes(); $excepted = array("name" => "fruition sciences", "value" => "Californie, Montpellier"); $this->assertEquals($excepted, $actual); }