PHP 클래스 FUnit\TestSuite

파일 보기 프로젝트 열기: funkatron/funit 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$after_func
$before_func
$current_test_name
$errors
$exit_code
$fixtures
$name
$run
$setup_func
$teardown_func
$tests

공개 메소드들

메소드 설명
__construct ( $name = FUnit::DEFAULT_SUITE_NAME )
addAssertionResult ( $func_name, $func_args, $result, $file, $line, $fail_info, $msg = null, $expected_fail = false )
addErrorData ( $edata )
addTest ( $name, Closure $test )
after ( Closure $after ) stuff that runs after the suite begins. Triggered by run()
assertCounts ( $test_name = null ) : array
before ( Closure $before ) stuff that runs before the suite begins. Triggered by run()
fixture ( $key, $val = null )
getExitCode ( ) : integer If any test fails, the exit code will be set to 1. Otherwise 0
getName ( )
getTests ( )
resetFixtures ( )
run ( string $filter = null ) : array runs the suite and returns test results
runTest ( $name ) : [type]
runTests ( $filter = null ) : [type]
setup ( Closure $setup )
teardown ( Closure $teardown )
testCounts ( ) : array

메소드 상세

__construct() 공개 메소드

public __construct ( $name = FUnit::DEFAULT_SUITE_NAME )

addAssertionResult() 공개 메소드

또한 보기: FUnit::add_assertion_result()
public addAssertionResult ( $func_name, $func_args, $result, $file, $line, $fail_info, $msg = null, $expected_fail = false )

addErrorData() 공개 메소드

또한 보기: FUnit::add_error_data()
public addErrorData ( $edata )

addTest() 공개 메소드

또한 보기: FUnit::add_test()
public addTest ( $name, Closure $test )
$test Closure

after() 공개 메소드

stuff that runs after the suite begins. Triggered by run()
public after ( Closure $after )
$after Closure

assertCounts() 공개 메소드

또한 보기: FUnit::assertion_stats()
public assertCounts ( $test_name = null ) : array
리턴 array

before() 공개 메소드

stuff that runs before the suite begins. Triggered by run()
public before ( Closure $before )
$before Closure

fixture() 공개 메소드

public fixture ( $key, $val = null )

getExitCode() 공개 메소드

If any test fails, the exit code will be set to 1. Otherwise 0
public getExitCode ( ) : integer
리턴 integer 0 or 1

getName() 공개 메소드

public getName ( )

getTests() 공개 메소드

public getTests ( )

resetFixtures() 공개 메소드

public resetFixtures ( )

run() 공개 메소드

runs the suite and returns test results
public run ( string $filter = null ) : array
$filter string
리턴 array

runTest() 공개 메소드

또한 보기: FUnit::run_test()
public runTest ( $name ) : [type]
리턴 [type]

runTests() 공개 메소드

또한 보기: FUnit::run_tests()
public runTests ( $filter = null ) : [type]
리턴 [type]

setup() 공개 메소드

또한 보기: FUnit::setup()
public setup ( Closure $setup )
$setup Closure

teardown() 공개 메소드

또한 보기: FUnit::teardown()
public teardown ( Closure $teardown )
$teardown Closure

testCounts() 공개 메소드

또한 보기: FUnit::test_stats()
public testCounts ( ) : array
리턴 array

프로퍼티 상세

$after_func 공개적으로 프로퍼티

public $after_func

$before_func 공개적으로 프로퍼티

public $before_func

$current_test_name 공개적으로 프로퍼티

public $current_test_name

$errors 공개적으로 프로퍼티

public $errors

$exit_code 공개적으로 프로퍼티

public $exit_code

$fixtures 공개적으로 프로퍼티

public $fixtures

$name 공개적으로 프로퍼티

public $name

$run 공개적으로 프로퍼티

public $run

$setup_func 공개적으로 프로퍼티

public $setup_func

$teardown_func 공개적으로 프로퍼티

public $teardown_func

$tests 공개적으로 프로퍼티

public $tests