Example #1
0
 /**
  * @testdox      Can be constructed in all possible states
  * @dataProvider provideAddClassData
  * @covers Core\Form\Form::addClass
  *
  * @param string $class     the expected name for the status
  * @param string $expected  the expected order for the status
  */
 public function testAddClass($classes, $expected)
 {
     if (is_array($classes)) {
         foreach ($classes as $class) {
             $this->target->addClass($class);
         }
     } elseif (is_string($classes)) {
         $this->target->addClass($classes);
     }
     $x = $this->target->getAttribute('class');
     $this->assertEquals($x, $expected);
 }