PHP Class BetterReflectionTest\SourceLocator\Located\LocatedSourceTest

Inheritance: extends PHPUnit_Framework_TestCase
Mostrar archivo Open project: roave/better-reflection

Public Methods

Method Description
exceptionCasesProvider ( ) : array
testConstructorThrowsExceptionIfEmptyFileGiven ( )
testConstructorThrowsExceptionIfFileDoesNotExist ( )
testConstructorThrowsExceptionIfFileIsNotAFile ( )
testConstructorThrowsExceptionIfFileIsNotReadable ( )
testThrowsExceptionWhenInvalidValuesGiven ( string $source, string $file, string $expectedException, string $expectedMessage )
testValuesHappyPath ( )
testValuesWithNullFilename ( )

Method Details

exceptionCasesProvider() public method

public exceptionCasesProvider ( ) : array
return array

testConstructorThrowsExceptionIfEmptyFileGiven() public method

testConstructorThrowsExceptionIfFileDoesNotExist() public method

testConstructorThrowsExceptionIfFileIsNotAFile() public method

testConstructorThrowsExceptionIfFileIsNotReadable() public method

testThrowsExceptionWhenInvalidValuesGiven() public method

public testThrowsExceptionWhenInvalidValuesGiven ( string $source, string $file, string $expectedException, string $expectedMessage )
$source string
$file string
$expectedException string
$expectedMessage string

testValuesHappyPath() public method

public testValuesHappyPath ( )

testValuesWithNullFilename() public method