/** * @covers spriebsch\PHPca\File::seekTokenId * @covers spriebsch\PHPca\File::add */ public function testSeekTokenIdReturnsFalseWhenTokenDoesNotExist() { $file = new File('filename', 'sourcecode'); $file->add(new Token(T_OPEN_TAG, '<?php')); $file->rewind(); $this->assertFalse($file->seekTokenId(T_PUBLIC)); }