StubsClassParserTest
class StubsClassParserTest extends TestCase (View source)
Methods
No description
Pins both halves of parse()'s type contract. assertInstanceOf alone is weak here: it keeps
passing if the : PHPClass declaration is dropped or widened, as long as the body still
happens to return the right thing. Asserting the declared return type catches the loosening
itself, which is the change that would silently let a different entity type escape.
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
protected void
setUp()
No description
testItDeclaresAndReturnsPHPClass()
Pins both halves of parse()'s type contract. assertInstanceOf alone is weak here: it keeps
passing if the : PHPClass declaration is dropped or widened, as long as the body still
happens to return the right thing. Asserting the declared return type catches the loosening
itself, which is the change that would silently let a different entity type escape.
testItCanParseSimpleClassName()
No description
testItSetsRootNamespaceForClassWithoutNamespace()
No description
testItCanParseNamespace()
No description
testItCanParseClassName()
No description
testItCanParseId()
No description
testItCanParseIdWithRootNamespace()
No description
testItCanParseFinalClass()
No description
testItCanParseNonFinalClass()
No description
testItSetsEmptyArrayIfNoMethodsInClass()
No description
testItCanParseClassWithMethods()
No description
testItReturnsCorrectInstanceForMethod()
No description
testItReturnsActuallyParsedMethods()
No description
testItSetsEmptyArrayIfNoPropertiesInClass()
No description
testItCanParseProperties()
No description
testItReturnsCorrectInstanceForProperty()
No description
testItReturnsActuallyParsedProperties()
No description
testItSetsEmptyArrayIfNoConstantsInClass()
No description
testItCanParseClassConstants()
No description
testItReturnsCorrectInstanceForConstant()
No description
testItReturnsActuallyParsedConstants()
No description
testItSetsNullAsDefaultParentClass()
No description
testItCanParseParentClass()
No description
testItReturnsCorrectInstanceForParentClass()
No description
testItReturnsActuallyParsedParentClass()
No description
testItSetsEmptyArraysForImplementedInterfacesIfNoAny()
No description
testItCanParseImplementedInterfaces()
No description
testItReturnsCorrectInstanceForImplementedInterface()
No description
testItReturnsImplementedInterfacesWithCorrectName()
No description
testItReturnsAllActuallyParsedImplementedInterfaces()
No description
testItParsesConstantsCorrectly()
No description