4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\CssSelector\Tests\Parser\Handler;
14 use Symfony\Component\CssSelector\Parser\Handler\WhitespaceHandler;
15 use Symfony\Component\CssSelector\Parser\Token;
17 class WhitespaceHandlerTest extends AbstractHandlerTest
19 public function getHandleValueTestData()
22 array(' ', new Token(Token::TYPE_WHITESPACE, ' ', 0), ''),
23 array("\n", new Token(Token::TYPE_WHITESPACE, "\n", 0), ''),
24 array("\t", new Token(Token::TYPE_WHITESPACE, "\t", 0), ''),
26 array(' foo', new Token(Token::TYPE_WHITESPACE, ' ', 0), 'foo'),
27 array(' .foo', new Token(Token::TYPE_WHITESPACE, ' ', 0), '.foo'),
31 public function getDontHandleValueTestData()
40 protected function generateHandler()
42 return new WhitespaceHandler();