Lines Matching refs:param

11         $param = new Parameter($cal, 'name','value');
12 $this->assertEquals('NAME',$param->name);
13 $this->assertEquals('value',$param->getValue());
21 $param = new Parameter($card, null,'URL');
22 $this->assertEquals('VALUE',$param->name);
23 $this->assertEquals('URL',$param->getValue());
24 $this->assertTrue($param->noName);
32 $param = new Parameter($cal, 'name', null);
33 $param->addValue(1);
34 $this->assertEquals(array(1), $param->getParts());
36 $param->setParts(array(1,2));
37 $this->assertEquals(array(1,2), $param->getParts());
39 $param->addValue(3);
40 $this->assertEquals(array(1,2,3), $param->getParts());
42 $param->setValue(4);
43 $param->addValue(5);
44 $this->assertEquals(array(4,5), $param->getParts());
51 $param = new Parameter($cal, 'name', 'value');
52 $this->assertEquals('value',$param->__toString());
53 $this->assertEquals('value',(string)$param);
60 $param = new Parameter($cal, 'name', null);
61 $this->assertEquals('',$param->__toString());
62 $this->assertEquals('',(string)$param);
69 $param = new Parameter($cal, 'name', 'value');
70 $this->assertEquals('NAME=value',$param->serialize());
77 $param = new Parameter($cal, 'name', null);
78 $this->assertEquals('NAME=',$param->serialize());
85 $param = new Parameter($cal, 'name',array("val1", "val2;", "val3^", "val4\n", "val5\""));
86 $this->assertEquals('NAME=val1,"val2;","val3^^","val4^n","val5^\'"',$param->serialize());
99 $param = new Parameter($cal, 'EMAIL',"user+something@example.org");
100 $this->assertEquals('EMAIL="user+something@example.org"',$param->serialize());
108 $param = new Parameter($cal, 'name', array(1,2,3,4));
111 foreach($param as $value) {
122 $param = new Parameter($cal, 'name','va:lue');
123 $this->assertEquals('NAME="va:lue"',$param->serialize());
130 $param = new Parameter($cal, 'name','va;lue');
131 $this->assertEquals('NAME="va;lue"',$param->serialize());