Documentation

recursionTest extends TestCase
in package
uses ParserAssertions

FinalYes

Table of Contents

Methods

assertEquals()  : void
assertSame()  : void
assertTrue()  : void
calling_combinators_on_a_recursive_parser_before_it_is_setup()  : mixed
fail()  : void
nesting_multiple_recursive_parsers()  : mixed
recursion_on_nested_structures()  : mixed
throw_for_nested_recursive_parsers_that_arent_completely_setup()  : mixed
throw_on_multiple_calls_to_recurse()  : mixed
throw_when_recursing_non_recursive_parsers()  : mixed
using_a_recursive_parser_like_a_regular_one_after_it_was_setup()  : 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

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 = ''

calling_combinators_on_a_recursive_parser_before_it_is_setup()

public calling_combinators_on_a_recursive_parser_before_it_is_setup() : mixed
Tags
test

fail()

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

nesting_multiple_recursive_parsers()

public nesting_multiple_recursive_parsers() : mixed
Tags
test

recursion_on_nested_structures()

public recursion_on_nested_structures() : mixed
Tags
test

throw_for_nested_recursive_parsers_that_arent_completely_setup()

public throw_for_nested_recursive_parsers_that_arent_completely_setup() : mixed
Tags
test

throw_on_multiple_calls_to_recurse()

public throw_on_multiple_calls_to_recurse() : mixed
Tags
test

throw_when_recursing_non_recursive_parsers()

public throw_when_recursing_non_recursive_parsers() : mixed
Tags
test

using_a_recursive_parser_like_a_regular_one_after_it_was_setup()

public using_a_recursive_parser_like_a_regular_one_after_it_was_setup() : 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