dox Executable Documentation

Printer

Text

$this->when->iPrintTheMarkup('Hello World');
$this->then->itShouldPrint('Hello World');

Unclosed element

$this->when->iPrintTheMarkup('<element>');
$this->then->itShouldPrint('<element/>');

Closed element

$this->when->iPrintTheMarkup('<element/>');
$this->then->itShouldPrint('<element/>');

Empty element

$this->when->iPrintTheMarkup('<element></element>');
$this->then->itShouldPrint('<element></element>');

Children

$this->when->iPrintTheMarkup('<element><child/>And Text</element>');
$this->then->itShouldPrint('<element><child/>And Text</element>');

White spacing

$this->when->iPrintTheMarkup('
        <element>
            <child/>
            And Text
        </element>');
$this->then->itShouldPrint('
        <element>
            <child/>
            And Text
        </element>');

Attributes

$this->when->iPrintTheMarkup('<element empty unquoted=value single=\'quoted\' quoted="value"/>');
$this->then->itShouldPrint('<element empty unquoted=value single=\'quoted\' quoted="value"/>');