/** * @dataProvider invalidSelectorProvider */ public function testInvalidSelector($selector) { $this->setExpectedException('RuntimeException'); Query::cssToXpath($selector); }