Documentation

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
test

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
test

fail()

public abstract static fail([string $message = '' ]) : void
Parameters
$message : string = ''

failing_on_the_first_token()

public failing_on_the_first_token() : mixed
Tags
test

failing_with_an_advanced_position()

public failing_with_an_advanced_position() : mixed
Tags
test

indicate_shorter_position()

public indicate_shorter_position() : mixed
Tags
test

tabs_move_column_position()

public tabs_move_column_position() : mixed
Tags
test

works_for_parsers_with_more_than_one_character()

public works_for_parsers_with_more_than_one_character() : mixed
Tags
test

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
psalm-param

mixed $expectedOutput

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
psalm-param

mixed $expected

psalm-param

mixed $actual

psalm-param

string $message

throws
Exception
psalm-suppress

MixedArgument

psalm-suppress

MixedAssignment

psalm-suppress

MixedArrayAccess

assertSucceedOnEOF()

protected assertSucceedOnEOF(Parser $parser[, string $message = "" ]) : void
APIYes
Parameters
$parser : Parser
$message : string = ""

        
On this page

Search results