/** * @covers ::getID */ public function test_getID() { $this->Container['foo'] = 1; $this->Container['bar'] = 1; $this->Container['test'] = 'test'; $this->Container['element'] = new \DOMElement('span', 'test'); $this->Container['resource'] = stream_context_create(array('http' => array('method' => "GET", 'header' => "Accept-language: en\r\n" . "Cookie: foo=bar\r\n"))); $this->assertEquals('6067805dec5a61fab70ae6011c942cdb', strval($this->Container->getID()), 'IContainer::getID() returned an invalid value'); }