Skip to content

Commit

Permalink
removed all @Covers annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Nov 1, 2015
1 parent ab32c10 commit 62cdded
Showing 1 changed file with 0 additions and 47 deletions.
47 changes: 0 additions & 47 deletions Tests/CrawlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ public function testConstructor()
$this->assertCount(1, $crawler, '__construct() takes a node as a first argument');
}

/**
* @covers Symfony\Component\DomCrawler\Crawler::add
*/
public function testAdd()
{
$crawler = new Crawler();
Expand Down Expand Up @@ -62,9 +59,6 @@ public function testAddInvalidNode()
$crawler->add(1);
}

/**
* @covers Symfony\Component\DomCrawler\Crawler::addHtmlContent
*/
public function testAddHtmlContent()
{
$crawler = new Crawler();
Expand All @@ -79,7 +73,6 @@ public function testAddHtmlContent()
}

/**
* @covers Symfony\Component\DomCrawler\Crawler::addHtmlContent
* @requires extension mbstring
*/
public function testAddHtmlContentCharset()
Expand All @@ -90,9 +83,6 @@ public function testAddHtmlContentCharset()
$this->assertEquals('Tiếng Việt', $crawler->filterXPath('//div')->text());
}

/**
* @covers Symfony\Component\DomCrawler\Crawler::addHtmlContent
*/
public function testAddHtmlContentInvalidBaseTag()
{
$crawler = new Crawler(null, 'http://symfony.com');
Expand All @@ -102,9 +92,6 @@ public function testAddHtmlContentInvalidBaseTag()
$this->assertEquals('http://symfony.com/contact', current($crawler->filterXPath('//a')->links())->getUri(), '->addHtmlContent() correctly handles a non-existent base tag href attribute');
}

/**
* @covers Symfony\Component\DomCrawler\Crawler::addHtmlContent
*/
public function testAddHtmlContentUnsupportedCharset()
{
$crawler = new Crawler();
Expand All @@ -114,7 +101,6 @@ public function testAddHtmlContentUnsupportedCharset()
}

/**
* @covers Symfony\Component\DomCrawler\Crawler::addHtmlContent
* @requires extension mbstring
*/
public function testAddHtmlContentCharsetGbk()
Expand All @@ -126,9 +112,6 @@ public function testAddHtmlContentCharsetGbk()
$this->assertEquals('中文', $crawler->filterXPath('//p')->text());
}

/**
* @covers Symfony\Component\DomCrawler\Crawler::addHtmlContent
*/
public function testAddHtmlContentWithErrors()
{
$internalErrors = libxml_use_internal_errors(true);
Expand All @@ -154,9 +137,6 @@ public function testAddHtmlContentWithErrors()
libxml_use_internal_errors($internalErrors);
}

/**
* @covers Symfony\Component\DomCrawler\Crawler::addXmlContent
*/
public function testAddXmlContent()
{
$crawler = new Crawler();
Expand All @@ -165,9 +145,6 @@ public function testAddXmlContent()
$this->assertEquals('foo', $crawler->filterXPath('//div')->attr('class'), '->addXmlContent() adds nodes from an XML string');
}

/**
* @covers Symfony\Component\DomCrawler\Crawler::addXmlContent
*/
public function testAddXmlContentCharset()
{
$crawler = new Crawler();
Expand All @@ -176,9 +153,6 @@ public function testAddXmlContentCharset()
$this->assertEquals('Tiếng Việt', $crawler->filterXPath('//div')->text());
}

/**
* @covers Symfony\Component\DomCrawler\Crawler::addXmlContent
*/
public function testAddXmlContentWithErrors()
{
$internalErrors = libxml_use_internal_errors(true);
Expand All @@ -202,9 +176,6 @@ public function testAddXmlContentWithErrors()
libxml_use_internal_errors($internalErrors);
}

/**
* @covers Symfony\Component\DomCrawler\Crawler::addContent
*/
public function testAddContent()
{
$crawler = new Crawler();
Expand Down Expand Up @@ -240,9 +211,6 @@ public function testAddContent()
$this->assertEquals('日本語', $crawler->filterXPath('//body')->text(), '->addContent() can recognize "Shift_JIS" in html5 meta charset tag');
}

/**
* @covers Symfony\Component\DomCrawler\Crawler::addDocument
*/
public function testAddDocument()
{
$crawler = new Crawler();
Expand All @@ -251,9 +219,6 @@ public function testAddDocument()
$this->assertEquals('foo', $crawler->filterXPath('//div')->attr('class'), '->addDocument() adds nodes from a \DOMDocument');
}

/**
* @covers Symfony\Component\DomCrawler\Crawler::addNodeList
*/
public function testAddNodeList()
{
$crawler = new Crawler();
Expand All @@ -262,9 +227,6 @@ public function testAddNodeList()
$this->assertEquals('foo', $crawler->filterXPath('//div')->attr('class'), '->addNodeList() adds nodes from a \DOMNodeList');
}

/**
* @covers Symfony\Component\DomCrawler\Crawler::addNodes
*/
public function testAddNodes()
{
foreach ($this->createNodeList() as $node) {
Expand All @@ -277,9 +239,6 @@ public function testAddNodes()
$this->assertEquals('foo', $crawler->filterXPath('//div')->attr('class'), '->addNodes() adds nodes from an array of nodes');
}

/**
* @covers Symfony\Component\DomCrawler\Crawler::addNode
*/
public function testAddNode()
{
$crawler = new Crawler();
Expand Down Expand Up @@ -396,9 +355,6 @@ public function testFilterXpathComplexQueries()
$this->assertCount(7, $crawler->filterXPath('( ( //a | //div )//img | //ul )'));
}

/**
* @covers Symfony\Component\DomCrawler\Crawler::filterXPath
*/
public function testFilterXPath()
{
$crawler = $this->createTestCrawler();
Expand Down Expand Up @@ -512,9 +468,6 @@ public function testFilterXPathWithSelfAxes()
$this->assertCount(9, $crawler->filterXPath('self::*/a'));
}

/**
* @covers Symfony\Component\DomCrawler\Crawler::filter
*/
public function testFilter()
{
$crawler = $this->createTestCrawler();
Expand Down

0 comments on commit 62cdded

Please sign in to comment.