FIT
[ class tree: FIT ] [ index: FIT ] [ all elements ]

Class: Testing_FIT_Fixture_Row

Source Location: /Testing_FIT-0.2.2/Fixture/Row.php

Class Overview

Testing_FIT_Fixture
   |
   --Testing_FIT_Fixture_Row

FIT Fixture: Row


Author(s):

Version:

  • 0.1.0

Variables

Methods


Child classes:

Music_Display
FIT Fixture

Inherited Variables

Inherited Methods

Class: Testing_FIT_Fixture

Testing_FIT_Fixture::__construct()
constructor
Testing_FIT_Fixture::camel()
CamelCaseString auxiliary function
Testing_FIT_Fixture::doCell()
process a single cell
Testing_FIT_Fixture::doCells()
process cells
Testing_FIT_Fixture::doRow()
iterate through cells
Testing_FIT_Fixture::doRows()
iterate through rows
Testing_FIT_Fixture::doTable()
iterate through table
Testing_FIT_Fixture::getType()
receive member variable's type specification
Testing_FIT_Fixture::loadFixture()
load a fixture by java-stylish name (dot-separated)
Testing_FIT_Fixture::_bind()
bind columns of table header to functions and properties
Testing_FIT_Fixture::_checkCell()
check a cell's actual against expected value

Class Details

[line 34]
FIT Fixture: Row

A RowFixture compares rows in the test data to objects in the system under test. Methods are invoked on the objects and returned values compared to those in the table. An algorithm matches rows with objects based on one or more keys. Objects may be missing or in surplus and are so noted.

The fixture processes all the rows of one table following these five steps:

  • bind the columns to variables and methods by reflection.
  • query to get the result rows which will be checked.
  • match the expected and result rows and check the matches.
  • build html for missing rows.
  • mark mark missing and surplus rows as such.

  • Version: 0.1.0


[ Top ]


Class Variables

$_results = array()

[line 36]

  • Access: protected

Type:   mixed


[ Top ]



Method Detail

doCell   [line 116]

boolean doCell( Testing_FIT_Node $node)

match rows
  • Return: true on success
  • Access: public

Overrides Testing_FIT_Fixture::doCell() (process a single cell)

Parameters:

object   $node   — 

[ Top ]

doCells   [line 80]

boolean doCells( Testing_FIT_Node $node)

match cells

Mark matching rows as right and missing ones as wrong. In case there are some lines left, they are marked as surplus

  • Return: true on success
  • Access: public

Overrides Testing_FIT_Fixture::doCells() (process cells)

Parameters:

object   $node   — 

[ Top ]

doRows   [line 44]

boolean doRows( Testing_FIT_Node $node)

bind columsn to fixture and start row iterator
  • Return: true on success
  • Access: public

Overrides Testing_FIT_Fixture::doRows() (iterate through rows)

Parameters:

object   $node   — 

[ Top ]

_match   [line 131]

boolean _match( Testing_FIT_Node $node)

match rows
  • Return: true on success
  • Access: protected

Parameters:

object   $node   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:09:48 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.