primitivesTest
extends TestCase
in package
uses
ParserAssertions
FinalYes
Table of Contents
Methods
- anything_() : mixed
- assertEquals() : void
- assertSame() : void
- assertTrue() : void
- eof() : mixed
- everything() : mixed
- fail() : void
- nothing() : mixed
- satisfy() : mixed
- skipWhile() : mixed
- skipWhile1() : mixed
- skipWhile_using_not() : mixed
- success_and_failure() : mixed
- takeWhile() : mixed
- takeWhile1() : mixed
- takeWhile_using_not() : mixed
- takeWile_succeeds_on_EOF() : 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
anything_()
public
anything_() : 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 = ''
eof()
public
eof() : mixed
Tags
everything()
public
everything() : mixed
Tags
fail()
public
abstract static fail([string $message = '' ]) : void
Parameters
- $message : string = ''
nothing()
public
nothing() : mixed
Tags
satisfy()
public
satisfy() : mixed
Tags
skipWhile()
public
skipWhile() : mixed
Tags
skipWhile1()
public
skipWhile1() : mixed
Tags
skipWhile_using_not()
public
skipWhile_using_not() : mixed
Tags
success_and_failure()
public
success_and_failure() : mixed
Tags
takeWhile()
public
takeWhile() : mixed
Tags
takeWhile1()
public
takeWhile1() : mixed
Tags
takeWhile_using_not()
public
takeWhile_using_not() : mixed
Tags
takeWile_succeeds_on_EOF()
public
takeWile_succeeds_on_EOF() : 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 = ""