Esempio n. 1
0
 public function testRenderAttributeString100()
 {
     $arrAttr = array('caption' => 'caption_value');
     $this->object->setAll($arrAttr);
     $value = $this->object->renderAttributeString();
     $expected = 'title="caption_value" id="0" ';
     $this->assertSame($expected, $value);
     $this->object->clear();
     $arrAttr = array('caption' => 'caption_value', ':pattern_description' => 'pattern description');
     $this->object->setAll($arrAttr);
     $value = $this->object->renderAttributeString();
     $expected = 'title="caption_value - pattern description" id="0" ';
     $this->assertSame($expected, $value);
 }