예제 #1
0
 /**
  * @dataProvider isPrecededByTokenValueProvider
  * @covers \PHP\Manipulator\AHelper::isPrecededByTokenValue
  */
 public function testIsPrecededByTokenValue($iterator, $value, $allowedTokens, $expectedResult)
 {
     $ahelper = new AHelper();
     $startToken = $iterator->current();
     $result = $ahelper->isPrecededByTokenValue($iterator, $value, $allowedTokens);
     $this->assertSame($expectedResult, $result);
     $this->assertSame($startToken, $iterator->current());
 }