"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "public_html/lists/base/vendor/symfony/symfony/src/Symfony/Component/CssSelector/Tests/CssSelectorConverterTest.php" between
phplist-3.4.5.tgz and phplist-3.4.6.tgz

About: phpList is a one-way email announcement delivery system for newsletters, publicity lists, notifications, and many other uses (requires PHP and MySQL).

CssSelectorConverterTest.php  (phplist-3.4.5.tgz):CssSelectorConverterTest.php  (phplist-3.4.6.tgz)
skipping to change at line 38 skipping to change at line 38
$this->assertEquals('descendant-or-self::h1', $converter->toXPath('H1')) ; $this->assertEquals('descendant-or-self::h1', $converter->toXPath('H1')) ;
} }
public function testCssToXPathXml() public function testCssToXPathXml()
{ {
$converter = new CssSelectorConverter(false); $converter = new CssSelectorConverter(false);
$this->assertEquals('descendant-or-self::H1', $converter->toXPath('H1')) ; $this->assertEquals('descendant-or-self::H1', $converter->toXPath('H1')) ;
} }
/**
* @expectedException \Symfony\Component\CssSelector\Exception\ParseExceptio
n
* @expectedExceptionMessage Expected identifier, but <eof at 3> found.
*/
public function testParseExceptions() public function testParseExceptions()
{ {
$this->expectException('Symfony\Component\CssSelector\Exception\ParseExc
eption');
$this->expectExceptionMessage('Expected identifier, but <eof at 3> found
.');
$converter = new CssSelectorConverter(); $converter = new CssSelectorConverter();
$converter->toXPath('h1:'); $converter->toXPath('h1:');
} }
/** @dataProvider getCssToXPathWithoutPrefixTestData */ /** @dataProvider getCssToXPathWithoutPrefixTestData */
public function testCssToXPathWithoutPrefix($css, $xpath) public function testCssToXPathWithoutPrefix($css, $xpath)
{ {
$converter = new CssSelectorConverter(); $converter = new CssSelectorConverter();
$this->assertEquals($xpath, $converter->toXPath($css, ''), '->parse() pa rses an input string and returns a node'); $this->assertEquals($xpath, $converter->toXPath($css, ''), '->parse() pa rses an input string and returns a node');
 End of changes. 2 change blocks. 
5 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)