PHP Class Helper\Unit

Here you can define custom actions all public methods declared in helper class will be available in $I
Inheritance: extends Codeception\Module
Mostrar archivo Open project: phalcon/cphalcon Class Usage Examples

Protected Properties

Property Type Description
$test Codeception\TestInterface

Public Methods

Method Description
_before ( Codeception\TestInterface $test ) Executed before each test.
cleanFile ( string $path, string $fileName ) Removes a file from the system
getNewFileName ( string $prefix = '', string $suffix = 'log' ) : string Returns a unique file name
getProtectedProperty ( $obj, $prop )
setProtectedProperty ( $obj, $prop, $value )
testFieldParameter ( string $function, mixed $options, string $expected, boolean $xhtml, string $set = '' ) Runs the test for a Tag::$function with $options

Method Details

_before() public method

Executed before each test.
public _before ( Codeception\TestInterface $test )
$test Codeception\TestInterface

cleanFile() public method

Removes a file from the system
Since: 2014-09-13
Author: Nikos Dimopoulos ([email protected])
public cleanFile ( string $path, string $fileName )
$path string
$fileName string

getNewFileName() public method

Returns a unique file name
Since: 2014-09-13
Author: Nikos Dimopoulos ([email protected])
public getNewFileName ( string $prefix = '', string $suffix = 'log' ) : string
$prefix string A prefix for the file
$suffix string A suffix for the file
return string

getProtectedProperty() public method

public getProtectedProperty ( $obj, $prop )

setProtectedProperty() public method

public setProtectedProperty ( $obj, $prop, $value )

testFieldParameter() public method

Runs the test for a Tag::$function with $options
public testFieldParameter ( string $function, mixed $options, string $expected, boolean $xhtml, string $set = '' )
$function string
$options mixed
$expected string
$xhtml boolean
$set string

Property Details

$test protected_oe property

protected TestInterface,Codeception $test
return Codeception\TestInterface