Neos\Fusion\Tests\Unit\Core\Parser\PatternTest::testSCAN_PATTERN_CLOSINGCONFINEMENT PHP Method

testSCAN_PATTERN_CLOSINGCONFINEMENT() public method

    public function testSCAN_PATTERN_CLOSINGCONFINEMENT()
    {
        $pattern = Parser::SCAN_PATTERN_CLOSINGCONFINEMENT;
        $this->assertEquals(preg_match($pattern, '}'), 1, 'a closing confinement was not matched');
        $this->assertEquals(preg_match($pattern, '		  }'), 1, 'a closing confinement with leading whitespace was not matched');
        $this->assertEquals(preg_match($pattern, '		  }     '), 1, 'a closing confinement with leading and following whitespace was not matched');
        $this->assertEquals(preg_match($pattern, '		  }    assas '), 0, 'a closing confinement with following text was matched, although it should not.');
    }