/** * Tests that the tokenizer returns <b>T_BOF</b> if there is no previous * token. * * @return void */ public function testInternalReturnsBOFTokenForPrevCall() { $tokenizer = new PHPTokenizerInternal(); $tokenizer->setSourceFile(self::createCodeResourceUriForTest()); $this->assertEquals(Tokenizer::T_BOF, $tokenizer->prev()); }