示例#1
0
 /**
  * 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());
 }
示例#2
0
 /**
  * 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;
 }
示例#3
0
 /**
  * @todo Implement testGetName().
  */
 public function testGetName()
 {
     $this->assertEquals($this->readAttribute($this->object, 'name'), $this->object->getName());
 }