Lines Matching refs:token
30 foreach ($ts as $token) {
31 if ($token instanceof PHP_Token_CLASS) {
32 $this->class = $token;
33 } elseif ($token instanceof PHP_Token_INTERFACE) {
34 $this->interfaces[$i] = $token;
117 foreach ($tokenStream as $token) {
118 if ($token instanceof PHP_Token_INTERFACE) {
119 $package = $token->getPackage();
142 foreach ($tokenStream as $token) {
143 if ($firstClassFound === false && $token instanceof PHP_Token_INTERFACE) {
144 $package = $token->getPackage();
145 $this->assertSame('TestClassInBar', $token->getName());
151 if ($token instanceof PHP_Token_INTERFACE) {
152 $package = $token->getPackage();
153 $this->assertSame('TestClassInBaz', $token->getName());
164 foreach ($this->interfaces as $token) {
165 $package = $token->getPackage();
177 foreach ($tokenStream as $token) {
178 if ($firstClassFound === false && $token instanceof PHP_Token_INTERFACE) {
179 $package = $token->getPackage();
180 $this->assertSame('Baz', $token->getName());
185 if ($token instanceof PHP_Token_INTERFACE) {
186 $package = $token->getPackage();
187 $this->assertSame('Extender', $token->getName());