You are here

public function Twig_Tests_TokenStreamTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/test/Twig/Tests/TokenStreamTest.php \Twig_Tests_TokenStreamTest::setUp()

Sets up the fixture, for example, open a network connection. This method is called before a test is executed.

Overrides PHPUnit_Framework_TestCase::setUp

File

vendor/twig/twig/test/Twig/Tests/TokenStreamTest.php, line 16

Class

Twig_Tests_TokenStreamTest

Code

public function setUp() {
  self::$tokens = array(
    new Twig_Token(Twig_Token::TEXT_TYPE, 1, 1),
    new Twig_Token(Twig_Token::TEXT_TYPE, 2, 1),
    new Twig_Token(Twig_Token::TEXT_TYPE, 3, 1),
    new Twig_Token(Twig_Token::TEXT_TYPE, 4, 1),
    new Twig_Token(Twig_Token::TEXT_TYPE, 5, 1),
    new Twig_Token(Twig_Token::TEXT_TYPE, 6, 1),
    new Twig_Token(Twig_Token::TEXT_TYPE, 7, 1),
    new Twig_Token(Twig_Token::EOF_TYPE, 0, 1),
  );
}