Lines Matching refs:assertEquals
15 $this->assertEquals('PROPNAME', $property->name);
16 $this->assertEquals('propvalue', $property->__toString());
17 $this->assertEquals('propvalue', (string)$property);
18 $this->assertEquals('propvalue', $property->getValue());
33 $this->assertEquals('value1', $property['param1']->getValue());
34 $this->assertEquals('value2', $property['param2']->getValue());
45 $this->assertEquals('PROPNAME', $property->name);
46 $this->assertEquals('value2', $property->__toString());
90 $this->assertEquals(2, count($property['paramname']->getParts()));
100 $this->assertEquals(1, count($property->parameters()));
102 $this->assertEquals('PARAMNAME', $property->parameters['PARAMNAME']->name);
103 $this->assertEquals('paramvalue', $property->parameters['PARAMNAME']->getValue());
114 $this->assertEquals(0, count($property->parameters()));
123 $this->assertEquals("PROPNAME:propvalue\r\n", $property->serialize());
135 …$this->assertEquals("PROPNAME;PARAMNAME=paramvalue;PARAMNAME2=paramvalue2:propvalue\r\n", $propert…
144 $this->assertEquals("SUMMARY:line1\\nline2\r\n", $property->serialize());
156 $this->assertEquals($expected, $property->serialize());
166 $this->assertEquals($expected, $property->serialize());
176 $this->assertEquals($it, $property->getIterator());
187 $this->assertEquals(1, count($it));
198 $this->assertEquals(1, count($property->parameters()));
201 $this->assertEquals('MYPARAM', $property->parameters['MYPARAM']->name);
202 $this->assertEquals('value', $property->parameters['MYPARAM']->getValue());
213 $this->assertEquals(1, count($prop->parameters()));
214 $this->assertEquals('MYPARAM', $prop['myparam']->name);
226 $this->assertEquals(1, count($prop->parameters));
227 $this->assertEquals(2, count($prop->parameters['MYPARAM']->getParts()));
229 $this->assertEquals('MYPARAM', $prop['MYPARAM']->name);
243 $this->assertEquals('BAR', (string)$property2['FOO']);
255 $this->assertEquals(1, count($property['PARAM1']->getParts()));
256 $this->assertEquals(2, count($property['PARAM2']->getParts()));
266 $this->assertEquals('Property contained a control character (0x00)', $result[0]['message']);
267 $this->assertEquals('Bla', $property->getValue());
289 $this->assertEquals('Property contained a control character (0x7f)', $result[0]['message']);
290 …$this->assertEquals("chars[7F()5E(^)5C(\\\\)3B(\\;)3A(:)2C(\\,)22(\")20( )1F()1E()1D()1C()1B()1A()…
300 …$this->assertEquals($result[0]['message'], 'The propertyname: X_*&PROP* contains invalid character…
301 $this->assertEquals('X-PROP', $property->name);
309 $this->assertEquals([], $property->getParts());
313 $this->assertEquals([], $property->getParts());
317 $this->assertEquals([1], $property->getParts());
318 $this->assertEquals(1, $property->getValue());
321 $this->assertEquals([1, 2], $property->getParts());
322 $this->assertEquals('1,2', $property->getValue());
325 $this->assertEquals(['str'], $property->getParts());
326 $this->assertEquals('str', $property->getValue());
367 …$this->assertEquals('ENCODING=INVALID is not valid for this document type.', $result[0]['message']…
368 $this->assertEquals(3, $result[0]['level']);
380 $this->assertEquals('ENCODING parameter is not valid in vCard 4.', $result[0]['message']);
381 $this->assertEquals(3, $result[0]['level']);
393 …$this->assertEquals('ENCODING=BASE64 is not valid for this document type.', $result[0]['message']);
394 $this->assertEquals(3, $result[0]['level']);
406 … $this->assertEquals('ENCODING=B is not valid for this document type.', $result[0]['message']);
407 $this->assertEquals(3, $result[0]['level']);