Class PHPFIT_Fixture_Column

Description

FIT Fixture: ColumnFixture

A ColumnFixture maps columns in the test data to fields or methods of its subclasses. SimpleExample and CalculatorExample use column fixtures.

  • version: 0.1.0

Located in /Fixture/Column.php (line 30)

PHPFIT_Fixture
   |
   --PHPFIT_Fixture_Column
Variable Summary
Method Summary
 void bind (mixed $heads, Parse $head)
 TypeAdapter bindField (String $name)
 TypeAdapter bindMethod (String $name)
 bool checkCell (mixed $cell, TypeAdapter $a, Parse $cell,)
 void doCell (object $cell)
 void doRow (Parce $row)
 void doRows (Parce $rows)
 void execute ()
 void reset ()
Variables
object $columnBindings (line 36)

TypeAdapter

  • access: protected
bool $hasExecuted = false (line 42)

Excecution state

  • access: protected

Inherited Variables

Inherited from PHPFIT_Fixture

PHPFIT_Fixture::$backgroundColor
PHPFIT_Fixture::$counts
PHPFIT_Fixture::$summary
Methods
bind (line 153)

bind columns of table header to functions and properties

  • access: protected
void bind (mixed $heads, Parse $head)
  • Parse $head
bindField (line 191)
  • access: protected
TypeAdapter bindField (String $name)
  • String $name: name
bindMethod (line 182)
  • access: protected
TypeAdapter bindMethod (String $name)
  • String $name: name
checkCell (line 132)

check whether the value of a cell matches

  • return: true on success, false otherwise
  • access: public
bool checkCell (mixed $cell, TypeAdapter $a, Parse $cell,)
  • Parse $cell,
  • TypeAdapter $a

Redefinition of:
PHPFIT_Fixture::checkCell()
check whether the value of a cell matches
doCell (line 86)

process a single cell

Generic processing of a table cell. Well, this function just ignores cells.

This method may be overwritten by a subclass (ColumnFixture)

  • access: public
void doCell (object $cell)
  • object $cell: A parse object

Redefinition of:
PHPFIT_Fixture::doCell()
process a single cell
doRow (line 60)

Process a table's row

  • access: public
void doRow (Parce $row)
  • Parce $row: rows

Redefinition of:
PHPFIT_Fixture::doRow()
iterate through cells
doRows (line 49)

Process a table's row

  • access: public
void doRows (Parce $rows)
  • Parce $rows: rows

Redefinition of:
PHPFIT_Fixture::doRows()
iterate through rows
execute (line 199)
  • access: public
void execute ()
reset (line 195)
  • access: public
void reset ()

Inherited Methods

Inherited From PHPFIT_Fixture

 PHPFIT_Fixture::__construct()
 PHPFIT_Fixture::camel()
 PHPFIT_Fixture::checkCell()
 PHPFIT_Fixture::doCell()
 PHPFIT_Fixture::doCells()
 PHPFIT_Fixture::doRow()
 PHPFIT_Fixture::doRows()
 PHPFIT_Fixture::doTable()
 PHPFIT_Fixture::doTables()
 PHPFIT_Fixture::error()
 PHPFIT_Fixture::escape()
 PHPFIT_Fixture::exception()
 PHPFIT_Fixture::fixBoolToString()
 PHPFIT_Fixture::fixtureName()
 PHPFIT_Fixture::getLinkedFixtureWithArgs()
 PHPFIT_Fixture::getType()
 PHPFIT_Fixture::ignore()
 PHPFIT_Fixture::info()
 PHPFIT_Fixture::infoS()
 PHPFIT_Fixture::label()
 PHPFIT_Fixture::loadFixture()
 PHPFIT_Fixture::parse()
 PHPFIT_Fixture::right()
 PHPFIT_Fixture::wrong()

Documentation generated on Sun, 02 Apr 2006 23:20:49 +0000 by phpDocumentor 1.3.0RC5