mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
26 lines
445 B
PHP
26 lines
445 B
PHP
<?php
|
|
|
|
require_once "ParserTestBase.php";
|
|
|
|
class ParserSyntaxTest extends ParserTestBase {
|
|
|
|
public function testBasicRuleSyntax() {
|
|
$parser = $this->buildParser('
|
|
/*!* BasicRuleSyntax
|
|
Foo: "a" "b"
|
|
Bar: "a"
|
|
"b"
|
|
Baz:
|
|
"a" "b"
|
|
Qux:
|
|
"a"
|
|
"b"
|
|
*/
|
|
');
|
|
|
|
$parser->assertMatches('Foo', 'ab');
|
|
$parser->assertMatches('Bar', 'ab');
|
|
$parser->assertMatches('Baz', 'ab');
|
|
$parser->assertMatches('Qux', 'ab');
|
|
}
|
|
} |