PHP Класс BetterReflectionTest\Reflection\ReflectionObjectTest

Наследование: extends PHPUnit_Framework_TestCase
Показать файл Открыть проект

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

Метод Описание
reflectionClassMethodProvider ( ) : array This data provider gets all the public methods from ReflectionClass, but filters out a few methods we want to test manually
testCannotClone ( )
testCreateFromNameThrowsException ( )
testCreateFromNodeThrowsException ( )
testExceptionThrownWhenInvalidInstanceGiven ( )
testExceptionThrownWhenNonObjectGiven ( )
testReflectionObjectExportMatchesExpectation ( )
testReflectionObjectOverridesAllMethodsInReflectionClass ( string $methodName ) This test loops through the DataProvider (which provides a list of public methods from ReflectionClass), ensures the method exists in ReflectionObject and that when the method is called on ReflectionObject, the method of the same name on ReflectionClass is also called.
testReflectionWorksWithDynamicallyDeclaredMembers ( )
testReflectionWorksWithEvaledClasses ( )
testReflectionWorksWithInternalClasses ( )

Приватные методы

Метод Описание
getPhpParser ( ) : PhpParser\Parser

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

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

This data provider gets all the public methods from ReflectionClass, but filters out a few methods we want to test manually
public reflectionClassMethodProvider ( ) : array
Результат array

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

public testCannotClone ( )

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

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

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

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

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

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

This test loops through the DataProvider (which provides a list of public methods from ReflectionClass), ensures the method exists in ReflectionObject and that when the method is called on ReflectionObject, the method of the same name on ReflectionClass is also called.

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

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

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