1--TEST--
2PhpToken implements __toString()
3--EXTENSIONS--
4tokenizer
5--FILE--
6<?php
7
8$tokens = PhpToken::tokenize('<?php echo "Hello ". $what;');
9var_dump(implode($tokens));
10
11var_dump($tokens[0] instanceof Stringable);
12var_dump((string) $tokens[0]);
13var_dump($tokens[0]->__toString());
14
15?>
16--EXPECT--
17string(27) "<?php echo "Hello ". $what;"
18bool(true)
19string(6) "<?php "
20string(6) "<?php "
21