checkClasses() публичный Метод

Checks if $classes are part of the $options['class'].
public checkClasses ( array | string $classes, array $options ) : boolean
$classes array | string Name of class(es) to check.
$options array An array of HTML attributes and options.
Результат boolean False if one or more class(es) do not exist.
 public function testCheckClasses()
 {
     foreach (['a', 'a b c', ['a'], ['a', 'b', 'c']] as $class) {
         $this->assertFalse($this->object->checkClasses($class, []));
         $this->assertFalse($this->object->checkClasses($class, ['class' => 'x y z']));
         $this->assertFalse($this->object->checkClasses($class, ['class' => ['x', 'y', 'z']]));
     }
     $this->assertTrue($this->object->checkClasses('a', ['class' => 'a']));
     $this->assertTrue($this->object->checkClasses('a b c', ['class' => 'c b a']));
     $this->assertTrue($this->object->checkClasses('a b c', ['class' => ['c', 'b', 'a']]));
 }