Skip to content

Commit

Permalink
Merge branch '2.8'
Browse files Browse the repository at this point in the history
* 2.8:
  [Translation] avoid freshness check based on content *inside* the cache.
  [Translator] Cache does not take fallback locales into consideration
  [Translator] Cache does not take fallback locales into consideration
  [VarDumper] Fix call site detection
  [Form] Cleanup deprecation notices
  [Console] Made output docopt compatible
  [Process] Fix volatile test
  Remove some useless @group annotations
  Removed useless strtolower call
  [Validator] Use strict comparisons in loaders
  CS: Use "self" keyword instead of class name if possible

Conflicts:
	.travis.yml
	src/Symfony/Component/Console/Tests/Input/InputDefinitionTest.php
	src/Symfony/Component/Form/FormTypeExtensionInterface.php
	src/Symfony/Component/Form/FormTypeInterface.php
  • Loading branch information
fabpot committed Apr 10, 2015
2 parents 4bd9dfe + a4d52bb commit 57d1d9b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Tests/CrawlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,13 @@ public function getBaseTagWithFormData()
);
}

public function testCountOfNestedElements()
{
$crawler = new Crawler('<html><body><ul><li>List item 1<ul><li>Sublist item 1</li><li>Sublist item 2</ul></li></ul></body></html>');

$this->assertCount(1, $crawler->filter('li:contains("List item 1")'));
}

public function createTestCrawler($uri = null)
{
$dom = new \DOMDocument();
Expand Down

0 comments on commit 57d1d9b

Please sign in to comment.