Clean up Tokenizer constants.

Remove a bunch of hardcoded strings from everywhere.
This commit is contained in:
Justin Hileman
2012-03-05 14:25:32 -08:00
parent 36e7247b1e
commit a196ac8dab
6 changed files with 101 additions and 96 deletions
+3 -3
View File
@@ -50,11 +50,11 @@ class CompilerTest extends \PHPUnit_Framework_TestCase {
'foo',
"\n",
array(
Tokenizer::TAG => '_v',
Tokenizer::TYPE => Tokenizer::T_ESCAPED,
Tokenizer::NAME => 'name',
),
array(
Tokenizer::TAG => '_v',
Tokenizer::TYPE => Tokenizer::T_ESCAPED,
Tokenizer::NAME => '.',
),
"'bar'",
@@ -79,6 +79,6 @@ class CompilerTest extends \PHPUnit_Framework_TestCase {
*/
public function testCompilerThrowsUnknownNodeTypeException() {
$compiler = new Compiler;
$compiler->compile('', array(array(Tokenizer::TAG => 'invalid')), 'SomeClass');
$compiler->compile('', array(array(Tokenizer::TYPE => 'invalid')), 'SomeClass');
}
}