public function elementShouldNotHaveClass($selector, $class)
    {
        $session = $this->getSession();
        $page = $session->getPage();
        $element = $page->find('css', $selector);

        if (!$element) {
            throw new ElementNotFoundException($session, 'Element "'.$selector.'"');
        }

        \PHPUnit_Framework_TestCase::assertFalse($element->hasClass($class));
    }
public function elementShouldNotHaveClass($selector, $class)
    {
        $session = $this->getSession();
        $page = $session->getPage();
        $element = $page->find('css', $selector);

        if (!$element) {
            throw new ElementNotFoundException($session, 'Element "'.$selector.'"');
        }

        \PHPUnit_Framework_TestCase::assertFalse($element->hasClass($class));
    }
public function elementShouldNotHaveClass ( $ selector , $ class ) { $ session = $ this -> getSession ( ) ; $ page = $ session -> getPage ( ) ; $ element = $ page -> find ( 'css' , $ selector ) ; if ( ! $ element ) { throw new ElementNotFoundException ( $ session , 'Element "' . $ selector . '"' ) ; } \ PHPUnit_Framework_TestCase :: assertFalse ( $ element -> hasClass ( $ class ) ) ; }
Checks an element doesn't have a class

@Then /^"([^"]*)" element should not have class "([^"]*)"$/

@return void
Checks an element doesn t have a class