FastFeed\Tests\Aggregator\RSSContentAggregatorTest::testContent PHP Method

testContent() public method

public testContent ( $fileName )
    public function testContent($fileName)
    {
        $content = file_get_contents(__DIR__ . $this->path . $fileName);
        $nodes = $this->parser->getNodes($content);
        $item = array_shift($nodes);
        $expected = $this->getFirstValueFromXpath($content, "*/item/content:encoded");
        if (!$expected) {
            $expected = $item->getContent();
        }
        $this->assertEquals($expected, $item->getContent(), 'Fail asserting that first element of ' . $fileName . ' has content "' . $expected . '"');
    }