public function testCloseTags() { $result = Selecta::close('ul li'); $this->assertEquals('</li></ul>', $result); }
public function testSimpleTagWithContent() { $result = Selecta::wrap('div', 'Hello'); $this->assertEquals('<div>Hello</div>', $result); }
public function testIdAndClass() { $result = Selecta::build('div#foo.bar'); $this->assertEquals('<div id="foo" class="bar"></div>', $result); }
public function testDisabledSelector() { $result = Selecta::build('input[type=text]:disabled'); $this->assertEquals('<input type="text" disabled>', $result); }
public function testProblem1() { $result = Selecta::wrap('a[href=/content/page/templates/][title=My pages].tab-active', 'hello'); $this->assertEquals('<a href="/content/page/templates/" title="My pages" class="tab-active">hello</a>', $result); }
public function testDoubleClass() { $result = Selecta::build('div.foo.bar'); $this->assertEquals('<div class="foo bar"></div>', $result); }