removeCssClasses() public method

Removes one or more CSS classes that have been set by other methods. This method won't fail if the passed class has not been set already.
public removeCssClasses ( string | array $cssClasses )
$cssClasses string | array
Ejemplo n.º 1
0
 /**
  * @dataProvider cssClassesProvider
  */
 public function testCssClassesMethods($classes)
 {
     $b = new Breadcrumbs(array(), $classes);
     $this->assertCount(count($classes), $b->getBreadcrumbsCssClasses());
     $b->removeCssClasses($classes);
     $this->assertCount(0, $b->getBreadcrumbsCssClasses());
     $b->addCssClasses($classes);
     $this->assertCount(count($classes), $b->getBreadcrumbsCssClasses());
 }