/** * Runs the test. */ public function test() { $name = 'Organization'; $value = 'Jyxo'; // Email and name given $header = new Header($name, $value); $this->assertEquals($name, $header->getName()); $this->assertEquals($value, $header->getValue()); }
/** * Add a Header to this container * * @param Header $header * @return $this */ public function addHeader(Header $header) { $this->headersKeys[] = static::createKey($header->getName()); $this->headers[] = $header; return $this; }
/** * @todo Implement testGetName(). */ public function testGetName() { $this->assertEquals($this->readAttribute($this->object, 'name'), $this->object->getName()); }