PHP Class BetterReflectionTest\SourceLocator\Type\SingleFileSourceLocatorTest

Inheritance: extends PHPUnit_Framework_TestCase
Exibir arquivo Open project: roave/better-reflection

Public Methods

Method Description
testConstructorThrowsExceptionIfEmptyFileGiven ( )
testConstructorThrowsExceptionIfFileDoesNotExist ( )
testConstructorThrowsExceptionIfFileIsNotAFile ( )
testReturnsNullWhenSourceDoesNotContainClass ( )
testReturnsReflectionWhenSourceHasClass ( )

Private Methods

Method Description
getMockReflector ( ) : BetterReflection\Reflector\Reflector | PHPUnit_Framework_MockObject_MockObject

Method Details

testConstructorThrowsExceptionIfEmptyFileGiven() public method

testConstructorThrowsExceptionIfFileDoesNotExist() public method

testConstructorThrowsExceptionIfFileIsNotAFile() public method

testReturnsNullWhenSourceDoesNotContainClass() public method

testReturnsReflectionWhenSourceHasClass() public method