예제 #1
0
 /**
  * @dataProvider dataMatchers
  * @covers  ::getType
  * @covers  ::getMatchers
  */
 public function testMatchers($selector, $expectedCount, $expected)
 {
     $index = new Crawler('index.html');
     $query = new Label($selector, new Filters());
     $result = $index->query($query->getXPath());
     $this->assertMatchesSelector($expected, $result->item(0), sprintf('Label "%s" should match "%s"', $selector, $expected));
 }