public function testToString() { $cookie = new Cookie('foo', 'bar'); $cookie2 = new Cookie('hey', 'ho'); $this->object->add($cookie); $this->object->add($cookie2); $string = $cookie . ';' . $cookie2; $this->assertEquals($string, $this->object->toString()); }