Overview

Namespaces

  • Nethgui
    • Adapter
    • Authorization
    • Component
    • Controller
      • Collection
      • Table
    • Exception
    • Log
    • Model
    • Module
      • Help
      • Notification
    • Renderer
    • Serializer
    • System
    • Test
      • Tool
      • Unit
        • Nethgui
          • Adapter
            • ParameterSet
          • Authorization
          • Log
          • Module
            • Notification
          • Renderer
          • Serializer
          • System
          • Utility
          • View
        • Test
          • Tool
    • Utility
    • View
    • Widget
      • Xhtml
  • None
  • Test
    • Tool

Classes

  • DB
  • MockFactory
  • MockObject
  • MockState
  • PermissivePolicyDecisionPoint
  • StaticPolicyDecisionPoint
  • Overview
  • Namespace
  • Class
  • Deprecated

Class MockState

TODO: write description here

Direct known subclasses

Nethgui\Test\Tool\DB
Namespace: Nethgui\Test\Tool
Author: Davide Principi davide.principi@nethesis.it
Since: 1.0
Located at Test/Tool/MockState.php
Methods summary
public
# __construct( $id = 0 )
public
# setFinal( $isFinal = TRUE )
public
# isFinal( )
public Test\Tool\MockState
# transition( mixed $cond, mixed $v = NULL )

Switch to a new state if the given condition occurs.

Switch to a new state if the given condition occurs.

Parameters

$cond
$v
The return value of the $cond call

Returns

Test\Tool\MockState
The new state
public Test\Tool\MockState
# set( mixed $cond, mixed $v )

Get the given return value when the given condition occurs.

Get the given return value when the given condition occurs.

Parameters

$cond
$v

Returns

Test\Tool\MockState
The current state
protected
# format( $a )
public Test\Tool\MockState
# exec( mixed $exp, mixed & $output )

Execute an expression.

Execute an expression.

If the given expression brings to a new state, the new state is returned. Otherwise the same object is returned.

Parameters

$exp
$output

Returns

Test\Tool\MockState
The next object state, or the object itself.
public
# call( )
public
# __toString( )
Nethgui Framework API documentation generated by ApiGen