public function isEmpty() { return 0 === count($this->styles); }
public function testIsEmpty() { $styleSet = new StyleSet(); $this->assertTrue($styleSet->isEmpty()); $styleSet->add(Style::tag('style')); $this->assertFalse($styleSet->isEmpty()); }