public function testFind_TokenNotFound() { $reader = $this->oneTokenReader()->thenAnOpenTag->thenAnEcho->thenSomeSpace->thenAString("content")->thenASemiColon->thenACloseTag; $access = new \vc\Tokens\Search($reader); $this->assertNull($access->find(array(Token::T_CLOSE_TAG, Token::T_SEMICOLON), array(Token::T_OPEN_TAG, Token::T_WHITESPACE))); $this->assertHasToken(Token::T_ECHO, $reader); }