You are here

private function ReaderTest::assignPosition in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/css-selector/Tests/Parser/ReaderTest.php \Symfony\Component\CssSelector\Tests\Parser\ReaderTest::assignPosition()
5 calls to ReaderTest::assignPosition()
ReaderTest::testFindPattern in vendor/symfony/css-selector/Tests/Parser/ReaderTest.php
ReaderTest::testGetOffset in vendor/symfony/css-selector/Tests/Parser/ReaderTest.php
ReaderTest::testGetRemainingLength in vendor/symfony/css-selector/Tests/Parser/ReaderTest.php
ReaderTest::testGetSubstring in vendor/symfony/css-selector/Tests/Parser/ReaderTest.php
ReaderTest::testIsEOF in vendor/symfony/css-selector/Tests/Parser/ReaderTest.php

File

vendor/symfony/css-selector/Tests/Parser/ReaderTest.php, line 95

Class

ReaderTest

Namespace

Symfony\Component\CssSelector\Tests\Parser

Code

private function assignPosition(Reader $reader, $value) {
  $position = new \ReflectionProperty($reader, 'position');
  $position
    ->setAccessible(true);
  $position
    ->setValue($reader, $value);
}