Skip to content

Commit 77e2fa5

Browse files
committed
[DomCrawler] Removed checks if CssSelector is present.
1 parent 9110468 commit 77e2fa5

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/Symfony/Component/DomCrawler/Tests/CrawlerTest.php

-15
Original file line numberDiff line numberDiff line change
@@ -425,8 +425,6 @@ public function testFilterXPathWithManuallyRegisteredNamespace()
425425
*/
426426
public function testFilter()
427427
{
428-
$this->markSkippedIfCssSelectorNotPresent();
429-
430428
$crawler = $this->createTestCrawler();
431429
$this->assertNotSame($crawler, $crawler->filter('li'), '->filter() returns a new instance of a crawler');
432430
$this->assertInstanceOf('Symfony\\Component\\DomCrawler\\Crawler', $crawler, '->filter() returns a new instance of a crawler');
@@ -438,17 +436,13 @@ public function testFilter()
438436

439437
public function testFilterWithDefaultNamespace()
440438
{
441-
$this->markSkippedIfCssSelectorNotPresent();
442-
443439
$crawler = $this->createTestXmlCrawler()->filter('default|entry default|id');
444440
$this->assertCount(1, $crawler, '->filter() automatically registers namespaces');
445441
$this->assertSame('tag:youtube.com,2008:video:kgZRZmEc9j4', $crawler->text());
446442
}
447443

448444
public function testFilterWithNamespace()
449445
{
450-
$this->markSkippedIfCssSelectorNotPresent();
451-
452446
CssSelector::disableHtmlExtension();
453447

454448
$crawler = $this->createTestXmlCrawler()->filter('yt|accessControl');
@@ -457,8 +451,6 @@ public function testFilterWithNamespace()
457451

458452
public function testFilterWithMultipleNamespaces()
459453
{
460-
$this->markSkippedIfCssSelectorNotPresent();
461-
462454
CssSelector::disableHtmlExtension();
463455

464456
$crawler = $this->createTestXmlCrawler()->filter('media|group yt|aspectRatio');
@@ -770,11 +762,4 @@ protected function createNodeList()
770762

771763
return $domxpath->query('//div');
772764
}
773-
774-
protected function markSkippedIfCssSelectorNotPresent()
775-
{
776-
if (!class_exists('Symfony\Component\CssSelector\CssSelector')) {
777-
$this->markTestSkipped('The "CssSelector" component is not available');
778-
}
779-
}
780765
}

0 commit comments

Comments
 (0)