Lines Matching refs:token
24 foreach ($tokenStream as $token) {
25 if ($token instanceof PHP_Token_NAMESPACE) {
26 $this->assertSame('Foo\\Bar', $token->getName());
34 foreach ($tokenStream as $token) {
35 if ($token instanceof PHP_Token_NAMESPACE) {
36 $this->assertSame(2, $token->getLine());
44 foreach ($tokenStream as $token) {
45 if ($token instanceof PHP_Token_NAMESPACE) {
46 $this->assertSame(2, $token->getEndLine());
53 foreach ($tokenStream as $token) {
54 if ($token instanceof PHP_Token_NAMESPACE) {
55 $this->assertSame(2, $token->getLine());
63 foreach ($tokenStream as $token) {
64 if ($token instanceof PHP_Token_NAMESPACE) {
65 $this->assertSame(8, $token->getEndLine());