@@ -45,21 +45,21 @@ public function testSplit()
4545 $ this ->assertSame (array ('foo ' , 'bar, baz \\' ), HeaderUtils::split ('foo, "bar, baz \\\\' , ', ' ));
4646 }
4747
48- public function testCombineAssoc ()
48+ public function testCombine ()
4949 {
50- $ this ->assertSame (array ('foo ' => '123 ' ), HeaderUtils::combineParts (array (array ('foo ' , '123 ' ))));
51- $ this ->assertSame (array ('foo ' => true ), HeaderUtils::combineParts (array (array ('foo ' ))));
52- $ this ->assertSame (array ('foo ' => true ), HeaderUtils::combineParts (array (array ('Foo ' ))));
53- $ this ->assertSame (array ('foo ' => '123 ' , 'bar ' => true ), HeaderUtils::combineParts (array (array ('foo ' , '123 ' ), array ('bar ' ))));
50+ $ this ->assertSame (array ('foo ' => '123 ' ), HeaderUtils::combine (array (array ('foo ' , '123 ' ))));
51+ $ this ->assertSame (array ('foo ' => true ), HeaderUtils::combine (array (array ('foo ' ))));
52+ $ this ->assertSame (array ('foo ' => true ), HeaderUtils::combine (array (array ('Foo ' ))));
53+ $ this ->assertSame (array ('foo ' => '123 ' , 'bar ' => true ), HeaderUtils::combine (array (array ('foo ' , '123 ' ), array ('bar ' ))));
5454 }
5555
56- public function testJoinAssoc ()
56+ public function testToString ()
5757 {
58- $ this ->assertSame ('foo ' , HeaderUtils::joinAssoc (array ('foo ' => true ), ', ' ));
59- $ this ->assertSame ('foo; bar ' , HeaderUtils::joinAssoc (array ('foo ' => true , 'bar ' => true ), '; ' ));
60- $ this ->assertSame ('foo=123 ' , HeaderUtils::joinAssoc (array ('foo ' => '123 ' ), ', ' ));
61- $ this ->assertSame ('foo="1 2 3" ' , HeaderUtils::joinAssoc (array ('foo ' => '1 2 3 ' ), ', ' ));
62- $ this ->assertSame ('foo="1 2 3", bar ' , HeaderUtils::joinAssoc (array ('foo ' => '1 2 3 ' , 'bar ' => true ), ', ' ));
58+ $ this ->assertSame ('foo ' , HeaderUtils::toString (array ('foo ' => true ), ', ' ));
59+ $ this ->assertSame ('foo; bar ' , HeaderUtils::toString (array ('foo ' => true , 'bar ' => true ), '; ' ));
60+ $ this ->assertSame ('foo=123 ' , HeaderUtils::toString (array ('foo ' => '123 ' ), ', ' ));
61+ $ this ->assertSame ('foo="1 2 3" ' , HeaderUtils::toString (array ('foo ' => '1 2 3 ' ), ', ' ));
62+ $ this ->assertSame ('foo="1 2 3", bar ' , HeaderUtils::toString (array ('foo ' => '1 2 3 ' , 'bar ' => true ), ', ' ));
6363 }
6464
6565 public function testQuote ()
0 commit comments