PHP Класс Helper\Unit

Here you can define custom actions all public methods declared in helper class will be available in $I
Наследование: extends Codeception\Module
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$test Codeception\TestInterface

Открытые методы

Метод Описание
_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

Описание методов

_before() публичный Метод

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

cleanFile() публичный Метод

Removes a file from the system
С версии: 2014-09-13
Автор: Nikos Dimopoulos ([email protected])
public cleanFile ( string $path, string $fileName )
$path string
$fileName string

getNewFileName() публичный Метод

Returns a unique file name
С версии: 2014-09-13
Автор: 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
Результат string

getProtectedProperty() публичный Метод

public getProtectedProperty ( $obj, $prop )

setProtectedProperty() публичный Метод

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

testFieldParameter() публичный Метод

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

Описание свойств

$test защищенное свойство

protected TestInterface,Codeception $test
Результат Codeception\TestInterface