WhitespaceTest
extends TestCase
in package
uses
ParserAssertions
FinalYes
Table of Contents
Methods
- a_bunch_of_whitespace() : mixed
- assertEquals() : void
- assertSame() : void
- assertTrue() : void
- fail() : void
- ws_carriage_return() : mixed
- ws_empty() : mixed
- ws_newline() : mixed
- ws_space() : mixed
- ws_tab() : 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
a_bunch_of_whitespace()
public
a_bunch_of_whitespace() : 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 = ''
fail()
public
abstract static fail([string $message = '' ]) : void
Parameters
- $message : string = ''
ws_carriage_return()
public
ws_carriage_return() : mixed
Tags
ws_empty()
public
ws_empty() : mixed
Tags
ws_newline()
public
ws_newline() : mixed
Tags
ws_space()
public
ws_space() : mixed
Tags
ws_tab()
public
ws_tab() : 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 = ""