PHP Класс phpmock\spy\SpyTest

См. также: Spy
Автор: Markus Malkusch ([email protected])
Наследование: extends phpmock\AbstractMockTest
Показать файл Открыть проект

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

Метод Описание
provideTestGetInvocations ( ) : array Returns test cases for testGetInvocations().
testDefaultFunction ( ) Tests the default function.
testException ( ) An exception should still be recorded.
testGetInvocations ( array $expected, string $name, callable $invocations ) Tests spying.
testNoException ( ) Test the invocation of a none exception call.

Защищенные методы

Метод Описание
defineFunction ( $namespace, $functionName )
disableMocks ( )
mockFunction ( $namespace, $functionName, callable $function )

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

defineFunction() защищенный Метод

protected defineFunction ( $namespace, $functionName )

disableMocks() защищенный Метод

protected disableMocks ( )

mockFunction() защищенный Метод

protected mockFunction ( $namespace, $functionName, callable $function )
$function callable

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

Returns test cases for testGetInvocations().
public provideTestGetInvocations ( ) : array
Результат array Test cases for testGetInvocations.

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

Tests the default function.
public testDefaultFunction ( )

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

An exception should still be recorded.
public testException ( )

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

Tests spying.
public testGetInvocations ( array $expected, string $name, callable $invocations )
$expected array
$name string
$invocations callable

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

Test the invocation of a none exception call.
public testNoException ( )