コード例 #1
0
ファイル: ElementTest.php プロジェクト: beberlei/phpricot
 public function testHasClass()
 {
     $tag = new PHPricot_Nodes_Element('p', array());
     $this->assertFalse($tag->hasClass('foo'));
     $tag->addClass('foo');
     $this->assertTrue($tag->hasClass('foo'));
 }