@@ -45,21 +45,21 @@ public function testSplit()
45
45
$ this ->assertSame (array ('foo ' , 'bar, baz \\' ), HeaderUtils::split ('foo, "bar, baz \\\\' , ', ' ));
46
46
}
47
47
48
- public function testCombineAssoc ()
48
+ public function testCombine ()
49
49
{
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 ' ))));
54
54
}
55
55
56
- public function testJoinAssoc ()
56
+ public function testToString ()
57
57
{
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 ' , Hea
47DD
derUtils::toString (array ('foo ' => '1 2 3 ' , 'bar ' => true ), ', ' ));
63
63
}
64
64
65
65
public function testQuote ()
0 commit comments