testphase
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Namespaces

  • Phramework
    • Exceptions
    • Testphase
      • Exceptions
    • Validate

Classes

  • Binary
  • Expression
  • Globals
  • Server
  • TestParser
  • Testphase
  • Util

Class Binary

This class is used by the script executed as binary. Construct method is responsible to parse the arguments passed to script.

Namespace: Phramework\Testphase
License: Apache-2.0
Author: Xenofon Spafaridis nohponex@gmail.com
Version: 1.0.0
Since: 1.0.0
Todo: Add time and memory statistics
Located at Binary.php

Methods summary

public static GetOptionKit\OptionCollection
# getArgumentSpecifications( )

Get argument specifications

Get argument specifications

Returns

GetOptionKit\OptionCollection
public
# __construct( array $argv )

Parameters

$argv
Array of arguments passed to script

Example

$binary = new Binary([
    __FILE__,
    '-d',
    './tests/'
]);

$binary->invoke();

public integer
# invoke( )

Invoke scripts

Invoke scripts

Returns

integer

Returns indicate how the script exited. Normal exit is generally represented by a 0 return.

protected
# stop( $returnCode )
protected Phramework\Testphase\TestParser[]
# getTestParserCollection( )

Returns

Phramework\Testphase\TestParser[]

Throws

Exception
public static integer
# sortTestParser( Phramework\Testphase\TestParser $a, Phramework\Testphase\TestParser $b )

Sort TestParsers ascending

Sort TestParsers ascending

Parameters

$a
$b

Returns

integer
Returns 1 if order of first TestParser is larger
public string
# colored( string $text, string $color )

Returned colored text

Returned colored text

Parameters

$text
$color

Returns

string
public
# output( string $text, string $color )

Print colored text

Print colored text

Parameters

$text
$color

Properties summary

protected GetOptionKit\OptionResult $arguments

Parsed arguments passed to script

Parsed arguments passed to script

#
protected $server
# null
testphase API documentation generated by ApiGen