Skip to content

Commit

Permalink
Fix more bad tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Sep 6, 2019
1 parent 8098e30 commit fe9ec83
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Tests/AbstractCrawlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1238,11 +1238,3 @@ protected function createNodeList()
return $domxpath->query('//div');
}
}

class ClassThatInheritCrawler extends Crawler
{
public function children()
{
parent::children();
}
}
25 changes: 25 additions & 0 deletions Tests/ClassThatInheritCrawler.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Symfony\Component\DomCrawler\Tests;

use Symfony\Component\DomCrawler\Crawler;

class ClassThatInheritCrawler extends Crawler
{
/**
* @return static
*/
public function children()
{
return parent::children();
}
}

0 comments on commit fe9ec83

Please sign in to comment.