ErrorReportingTest
extends TestCase
in package
uses
ParserAssertions
FinalYes
Table of Contents
Methods
- advance_the_column_with_followedBy() : mixed
- assertEquals() : void
- assertSame() : void
- assertTrue() : void
- dont_truncate_short_enough_lines() : mixed
- fail() : void
- failing_on_the_first_token() : mixed
- failing_with_an_advanced_position() : mixed
- indicate_position() : mixed
- indicate_shorter_position() : mixed
- line_numbers_space_out() : mixed
- multiline_input() : mixed
- repeatN() : mixed
- tabs_move_column_position() : mixed
- truncate_long_lines() : mixed
- works_for_parsers_with_more_than_one_character() : mixed
- works_with_custom_labels() : 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
advance_the_column_with_followedBy()
public
advance_the_column_with_followedBy() : 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 = ''
dont_truncate_short_enough_lines()
public
dont_truncate_short_enough_lines() : mixed
Tags
fail()
public
abstract static fail([string $message = '' ]) : void
Parameters
- $message : string = ''
failing_on_the_first_token()
public
failing_on_the_first_token() : mixed
Tags
failing_with_an_advanced_position()
public
failing_with_an_advanced_position() : mixed
Tags
indicate_position()
public
indicate_position() : mixed
Tags
indicate_shorter_position()
public
indicate_shorter_position() : mixed
Tags
line_numbers_space_out()
public
line_numbers_space_out() : mixed
Tags
multiline_input()
public
multiline_input() : mixed
Tags
repeatN()
public
repeatN() : mixed
Tags
tabs_move_column_position()
public
tabs_move_column_position() : mixed
Tags
truncate_long_lines()
public
truncate_long_lines() : mixed
Tags
works_for_parsers_with_more_than_one_character()
public
works_for_parsers_with_more_than_one_character() : mixed
Tags
works_with_custom_labels()
public
works_with_custom_labels() : 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 = ""