combinatorsTest
extends TestCase
in package
uses
ParserAssertions
FinalYes
Table of Contents
Methods
- any_() : mixed
- anySingle() : mixed
- anySingleBut() : mixed
- assertEquals() : void
- assertSame() : void
- assertTrue() : void
- atLeastOne() : mixed
- between() : mixed
- between_failure() : mixed
- choice() : mixed
- collect() : mixed
- collectFails() : mixed
- either() : mixed
- either_with_mixed_type() : mixed
- fail() : void
- identity() : mixed
- identity_does_not_show_up_in_error_messages() : mixed
- keepFirst__inside_a_nested_parser() : mixed
- lookAhead() : mixed
- noneOf() : mixed
- noneOfS() : mixed
- notFollowedBy() : mixed
- notFollowedBy_fluent() : mixed
- oneOf() : mixed
- oneOf_expects_single_chars() : mixed
- oneOfS() : mixed
- repeat_vs_repeatList() : mixed
- sepBy() : mixed
- sepBy1() : mixed
- sequence() : mixed
- skipMany() : mixed
- takeRest() : mixed
- thenIgnore() : mixed
- assertFailOnEOF() : void
- assertParseFails() : void
- assertParses() : void
- assertRemainder() : void
- assertStrictlyEquals() : void
- Behaves like assertSame for primitives, behaves like assertEquals for objects of the same type, and fails for everything else.
- assertSucceedOnEOF() : void
Methods
any_()
public
any_() : mixed
Tags
anySingle()
public
anySingle() : mixed
Tags
anySingleBut()
public
anySingleBut() : mixed
Tags
assertEquals()
public
abstract static assertEquals(mixed $expected, mixed $actual[, string $message = '' ]) : void
Parameters
- $expected : mixed
- $actual : mixed
- $message : string = ''
assertSame()
public
abstract static assertSame(mixed $expected, mixed $actual[, string $message = '' ]) : void
Parameters
- $expected : mixed
- $actual : mixed
- $message : string = ''
assertTrue()
public
abstract static assertTrue(mixed $condition[, string $message = '' ]) : void
Parameters
- $condition : mixed
- $message : string = ''
atLeastOne()
public
atLeastOne() : mixed
Tags
between()
public
between() : mixed
Tags
between_failure()
public
between_failure() : mixed
Tags
choice()
public
choice() : mixed
Tags
collect()
public
collect() : mixed
Tags
collectFails()
public
collectFails() : mixed
Tags
either()
public
either() : mixed
Tags
either_with_mixed_type()
public
either_with_mixed_type() : mixed
Tags
fail()
public
abstract static fail([string $message = '' ]) : void
Parameters
- $message : string = ''
identity()
public
identity() : mixed
Tags
identity_does_not_show_up_in_error_messages()
public
identity_does_not_show_up_in_error_messages() : mixed
Tags
keepFirst__inside_a_nested_parser()
public
keepFirst__inside_a_nested_parser() : mixed
Tags
lookAhead()
public
lookAhead() : mixed
Tags
noneOf()
public
noneOf() : mixed
Tags
noneOfS()
public
noneOfS() : mixed
Tags
notFollowedBy()
public
notFollowedBy() : mixed
Tags
notFollowedBy_fluent()
public
notFollowedBy_fluent() : mixed
Tags
oneOf()
public
oneOf() : mixed
Tags
oneOf_expects_single_chars()
public
oneOf_expects_single_chars() : mixed
Tags
oneOfS()
public
oneOfS() : mixed
Tags
repeat_vs_repeatList()
public
repeat_vs_repeatList() : mixed
Tags
sepBy()
public
sepBy() : mixed
Tags
sepBy1()
public
sepBy1() : mixed
Tags
sequence()
public
sequence() : mixed
Tags
skipMany()
public
skipMany() : mixed
Tags
takeRest()
public
takeRest() : mixed
Tags
thenIgnore()
public
thenIgnore() : mixed
Tags
assertFailOnEOF()
protected
assertFailOnEOF(Parser $parser[, string $message = "" ]) : void
APIYes
Parameters
- $parser : Parser
- $message : string = ""
assertParseFails()
protected
assertParseFails(string $input, Parser $parser[, string|null $expectedFailure = null ][, string $message = "" ]) : void
APIYes
Parameters
- $input : string
- $parser : Parser
- $expectedFailure : string|null = null
- $message : string = ""
assertParses()
protected
assertParses(string $input, Parser $parser, mixed $expectedOutput[, string $message = "" ]) : void
APIYes
Parameters
- $input : string
- $parser : Parser
- $expectedOutput : mixed
- $message : string = ""
Tags
assertRemainder()
protected
assertRemainder(string $input, Parser $parser, string $expectedRemaining[, string $message = "" ]) : void
APIYes
Parameters
- $input : string
- $parser : Parser
- $expectedRemaining : string
- $message : string = ""
assertStrictlyEquals()
Behaves like assertSame for primitives, behaves like assertEquals for objects of the same type, and fails for everything else.
protected
assertStrictlyEquals(mixed $expected, mixed $actual[, string $message = '' ]) : void
APIYes
Parameters
- $expected : mixed
- $actual : mixed
- $message : string = ''
Tags
assertSucceedOnEOF()
protected
assertSucceedOnEOF(Parser $parser[, string $message = "" ]) : void
APIYes
Parameters
- $parser : Parser
- $message : string = ""