예제 #1
0
 public function testNormalizesGluedHeaders()
 {
     $h = new Header('Zoo', array('foo, Faz', 'bar'));
     $result = $h->normalize(true)->toArray();
     natsort($result);
     $this->assertEquals(array('bar', 'foo', 'Faz'), $result);
 }
예제 #2
0
 public function testNormalizesCases()
 {
     $h = new Header('Zoo', $this->test);
     $h->normalize();
     $this->assertEquals(array('Zoo' => array('foo', 'Foo', 'bar')), $h->raw());
 }