Пример #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());
 }