AloFramework documentation
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download

Namespaces

  • Alo
    • Cache
    • Controller
    • Db
    • Exception
    • Session
    • Statics
    • Test
    • Validators
  • Controller
  • None
  • PHP

Classes

  • AbstractTester
  • ClassTester
  • FunctionTester

Class ClassTester

Tests classes for output or return values

Alo\Test\AbstractTester
Extended by Alo\Test\ClassTester
Namespace: Alo\Test
Package: TestingSuite
Author: Art <a.molcanovas@gmail.com>
Located at sys/class/alo/test/classtester.php

Methods summary

public
# __construct( mixed $obj = null )

Instantiates the tester

Instantiates the tester

Parameters

$obj
mixed
$obj Optionally, set the object upon instantiation

Author

Art <a.molcanovas@gmail.com>

Overrides

Alo\Test\AbstractTester::__construct
public mixed|Alo\Test\ClassTester
# obj( null|string|ReflectionClass|mixed $obj = null )

If no parameter is passed returns the currently set object, otherwise sets it

If no parameter is passed returns the currently set object, otherwise sets it

Parameters

$obj
null|string|ReflectionClass|mixed
$obj The object to set. Either an instance of the object, a ReflectionClass of the object or the object name including the namespace

Returns

mixed|Alo\Test\ClassTester
$this if a parameter is passed, the currently tester object otherwise

Throws

Alo\Exception\TesterException
When the Supplied object or its reflection/name is invalid.
protected array
# getCallable( string $name )

Returns the callable parameter for call_user_func_array()

Returns the callable parameter for call_user_func_array()

Parameters

$name
string
$name Method name

Returns

array

Author

Art <a.molcanovas@gmail.com>

Methods inherited from Alo\Test\AbstractTester

__toString(), addGenericTest(), addOutputTest(), addReturnTest(), getQueue(), getResults(), runTest(), runTests(), toPlaintextString()

Magic methods summary

Constants summary

Constants inherited from Alo\Test\AbstractTester

O_NOT_CALLABLE, P_ARGS, P_DEFINITION, P_NAME, P_OUTCOME, P_PASSED, P_TEST_END, P_TEST_RUNTIME, P_TEST_START, P_TYPE, T_OUTPUT, T_RETURN

Properties summary

protected mixed $obj
#

The object in testing

The object in testing

Properties inherited from Alo\Test\AbstractTester

$queue, $results

AloFramework documentation API documentation generated by ApiGen 2.8.0