Ejemplo n.º 1
0
 public function testGettersAndSetters()
 {
     $this->object->set_label('coucou les chicos');
     $this->assertEquals('coucou-les-chicos', $this->object->get_label());
     $this->object->set_label('');
     $this->assertEquals('untitled', $this->object->get_label());
     $this->object->set_label('JE ANp    ra&é"\\/,;:!§/.?%µ*ù$]@^\\[{#~234567890°+\'(-è_çà');
     $this->assertEquals('JE-ANp-raeu234567890-e_ca', $this->object->get_label());
 }