Documentation

GH26_Test extends TestCase
in package
uses ParserAssertions

FinalYes

https://github.com/mathiasverraes/parsica/issues/6

Table of Contents

Methods

assertEquals()  : void
assertSame()  : void
assertTrue()  : void
fail()  : void
it_should_parse_500_times_in_under_100_ms()  : mixed
only_the_first_successful_parser_in_an_either_should_call_emit()  : mixed
https://github.com/mathiasverraes/parsica/issues/6#issuecomment-653772920
parsing_a_simple_path()  : 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
pathParser()  : Parser

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

fail()

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

it_should_parse_500_times_in_under_100_ms()

public it_should_parse_500_times_in_under_100_ms() : mixed
Tags
TODO

Set $repeatParser at 500 and fix the performance issues.

https://github.com/mathiasverraes/parsica/issues/6#issuecomment-653772920

test

only_the_first_successful_parser_in_an_either_should_call_emit()

https://github.com/mathiasverraes/parsica/issues/6#issuecomment-653772920

public only_the_first_successful_parser_in_an_either_should_call_emit() : mixed
Tags
test

parsing_a_simple_path()

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