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

Class: Testing_FIT_Fixture_Action

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

Class Overview

Testing_FIT_Fixture
   |
   --Testing_FIT_Fixture_Action

FIT Fixture: ActionFixture


Author(s):

Version:

  • 0.1.0

Variables

Methods


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 26]
FIT Fixture: ActionFixture

An action fixture interprets rows as a sequence of commands to be performed in order. It interprets tables for which the first column contains one of a small number of commands. Subsequent columns contain values interpreted by the particular command. The generic action fixture offers only four commands, but subclasses may extend this set.

  • Version: 0.1.0


[ Top ]


Class Variables

$actor =  null

[line 45]

actor that has been startet

The actor is static to make HTML tables "interuptable" This way a table may end, another start and you are still at the same fixture.


Type:   Fixture


[ Top ]

$_cells =

[line 32]

column iterator
  • Access: protected

Type:   object


[ Top ]



Method Detail

check   [line 106]

void check( )

Implements check fixture

Check aMethod aValue - Invoke aMethod with no arguments. Compare the returned value with aValue. This is similar to reading values from a GUI screen.

  • Access: public

[ Top ]

doCells   [line 131]

boole doCells( Testing_FIT_Node $node)

process cells

In case of ActionFixture each row has to be interpreted as a command Processing cells means to execute one command.

An action fixture interprets tables for which the first column contains one of a small number of commands. Subsequent columns contain values interpreted by the particular command. The generic action fixture offers only four commands, but subclasses may extend this set.

  • Return: true on success
  • Access: public

Overrides Testing_FIT_Fixture::doCells() (process cells)

Parameters:

object   $node   — 

[ Top ]

enter   [line 70]

void enter( )

Implements enter fixture

Enter aMethod anArgument - Invoke aMethod with anArgument (of type determined by aMethod.) This is similar to entering values into GUI fields.

  • Access: public

[ Top ]

press   [line 89]

void press( )

Implements press fixture

Press aMethod - Invoke aMethod with no arguments. This is similar to pressing a GUI button.

  • Access: public

[ Top ]

start   [line 55]

void start( )

Implements start fixture

Start aClass - Subsequent commands are directed to an instance of aClass. This is similar to navigating to a particular GUI screen.

  • Access: public

[ Top ]


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