PHP 클래스 BetterReflectionTest\Reflection\ReflectionFunctionAbstractTest

상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: roave/better-reflection

공개 메소드들

메소드 설명
generatorProvider ( ) : array These generator tests were taken from nikic/php-parser - so a big thank you and credit to @nikic for this (and the awesome PHP-Parser library).
returnTypeFunctionProvider ( )
returnsReferenceProvider ( )
startEndLineProvider ( )
testAddParameter ( )
testCannotClone ( )
testExportThrowsException ( )
testGetAst ( )
testGetBodyAst ( )
testGetBodyCode ( )
testGetDocBlockReturnTypes ( )
testGetDocCommentWithComment ( )
testGetDocReturnsEmptyStringWithNoComment ( )
testGetFileName ( )
testGetLocatedSource ( )
testGetNumberOfParameters ( )
testGetParameter ( )
testGetParameterReturnsNullWhenNotFound ( )
testGetReturnStatementAstDoesNotGiveInnerScopeReturnStatements ( )
testGetReturnStatementAstReturnsStatements ( )
testGetReturnTypeReturnsNullWhenTypeIsNotDeclared ( )
testGetReturnTypeWithDeclaredType ( string $functionToReflect, string $expectedType )
testHasReturnTypeWhenTypeDeclared ( )
testHasReturnTypeWhenTypeIsNotDeclared ( )
testIsClosureWithClosure ( )
testIsClosureWithRegularFunction ( )
testIsDeprecated ( )
testIsGenerator ( string $php, boolean $expectingGenerator )
testIsGeneratorWhenNodeNotSet ( )
testIsInternal ( )
testIsVariadic ( string $php, boolean $expectingVariadic )
testNameMethodsWithClosure ( )
testNameMethodsWithNamespace ( )
testNameMethodsWithoutNamespace ( )
testPopulateFunctionAbstractThrowsExceptionWithInvalidNode ( )
testRemoveParameter ( )
testRemoveReturnType ( )
testReturnsReference ( string $php, boolean $expectingReturnsReference )
testSetBodyFromAst ( )
testSetBodyFromAstWithInvalidArgumentsThrowsException ( )
testSetBodyFromClosure ( )
testSetBodyFromString ( )
testSetBodyFromStringWithInvalidArgumentThrowsException ( )
testSetReturnType ( )
testStartEndLine ( string $php, integer $expectedStart, integer $expectedEnd )
variadicProvider ( )

메소드 상세

generatorProvider() 공개 메소드

These generator tests were taken from nikic/php-parser - so a big thank you and credit to @nikic for this (and the awesome PHP-Parser library).
또한 보기: https://github.com/nikic/PHP-Parser/blob/1.x/test/code/parser/stmt/function/generator.test
public generatorProvider ( ) : array
리턴 array

returnTypeFunctionProvider() 공개 메소드

returnsReferenceProvider() 공개 메소드

startEndLineProvider() 공개 메소드

testAddParameter() 공개 메소드

public testAddParameter ( )

testCannotClone() 공개 메소드

public testCannotClone ( )

testExportThrowsException() 공개 메소드

testGetAst() 공개 메소드

public testGetAst ( )

testGetBodyAst() 공개 메소드

public testGetBodyAst ( )

testGetBodyCode() 공개 메소드

public testGetBodyCode ( )

testGetDocBlockReturnTypes() 공개 메소드

testGetDocCommentWithComment() 공개 메소드

testGetDocReturnsEmptyStringWithNoComment() 공개 메소드

testGetFileName() 공개 메소드

public testGetFileName ( )

testGetLocatedSource() 공개 메소드

testGetNumberOfParameters() 공개 메소드

testGetParameter() 공개 메소드

public testGetParameter ( )

testGetParameterReturnsNullWhenNotFound() 공개 메소드

testGetReturnStatementAstDoesNotGiveInnerScopeReturnStatements() 공개 메소드

testGetReturnStatementAstReturnsStatements() 공개 메소드

testGetReturnTypeReturnsNullWhenTypeIsNotDeclared() 공개 메소드

testGetReturnTypeWithDeclaredType() 공개 메소드

public testGetReturnTypeWithDeclaredType ( string $functionToReflect, string $expectedType )
$functionToReflect string
$expectedType string

testHasReturnTypeWhenTypeDeclared() 공개 메소드

testHasReturnTypeWhenTypeIsNotDeclared() 공개 메소드

testIsClosureWithClosure() 공개 메소드

testIsClosureWithRegularFunction() 공개 메소드

testIsDeprecated() 공개 메소드

public testIsDeprecated ( )

testIsGenerator() 공개 메소드

public testIsGenerator ( string $php, boolean $expectingGenerator )
$php string
$expectingGenerator boolean

testIsGeneratorWhenNodeNotSet() 공개 메소드

testIsInternal() 공개 메소드

public testIsInternal ( )

testIsVariadic() 공개 메소드

public testIsVariadic ( string $php, boolean $expectingVariadic )
$php string
$expectingVariadic boolean

testNameMethodsWithClosure() 공개 메소드

testNameMethodsWithNamespace() 공개 메소드

testNameMethodsWithoutNamespace() 공개 메소드

testPopulateFunctionAbstractThrowsExceptionWithInvalidNode() 공개 메소드

testRemoveParameter() 공개 메소드

public testRemoveParameter ( )

testRemoveReturnType() 공개 메소드

testReturnsReference() 공개 메소드

public testReturnsReference ( string $php, boolean $expectingReturnsReference )
$php string
$expectingReturnsReference boolean

testSetBodyFromAst() 공개 메소드

public testSetBodyFromAst ( )

testSetBodyFromAstWithInvalidArgumentsThrowsException() 공개 메소드

testSetBodyFromClosure() 공개 메소드

testSetBodyFromString() 공개 메소드

testSetBodyFromStringWithInvalidArgumentThrowsException() 공개 메소드

testSetReturnType() 공개 메소드

public testSetReturnType ( )

testStartEndLine() 공개 메소드

public testStartEndLine ( string $php, integer $expectedStart, integer $expectedEnd )
$php string
$expectedStart integer
$expectedEnd integer

variadicProvider() 공개 메소드

public variadicProvider ( )