Adrian Rudnik hace 14 años
padre
commit
08bbb1938b
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  1. 8 0
      tests/Symfony/Tests/Component/CssSelector/TokenizerTest.php

+ 8 - 0
tests/Symfony/Tests/Component/CssSelector/TokenizerTest.php

@@ -36,6 +36,14 @@ class TokenizerTest extends \PHPUnit_Framework_TestCase
         $this->assertEquals("foo[class=foo Abar     ]", $this->tokensToString($this->tokenizer->tokenize('foo[class="foo \\65 bar"]')), '->tokenize() lexes an input string and returns an array of tokens');
     }
 
+    /**
+     * @expectedException Symfony\Component\CssSelector\Exception\ParseException
+     */
+    public function testTokenizeInvalidString()
+    {
+        $this->tokensToString($this->tokenizer->tokenize('/invalid'));
+    }
+
     public function getCssSelectors()
     {
         return array(