PHP Class KamranAhmed\Smasher\ScannerTest

Tests the Scanner class
Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: kamranahmedse/smasher

Méthodes publiques

Méthode Description
callProtectedMethod ( $object, $method, array $args = [] )
setUp ( ) Setup the class for testing
testCanGetScannedContentFromJsonFile ( )
testCanPopulatePathUsingInputFile ( )
testCanProbePathAndGenerateArrayOfContent ( )
testCanScanPathAndCreateValidResponseFile ( )
testCanScanPathAndGetResult ( )
testGettingContentThrowsExceptionForEmptyFile ( )
testGettingContentThrowsExceptionForInvalidFile ( )
testThrowsExceptionTryingToScanInvalidPath ( )

Méthodes protégées

Méthode Description
tearDown ( ) Remove unnecessary files/directories

Private Methods

Méthode Description
isValidJson ( $json )
removeDirectory ( $directory )

Method Details

callProtectedMethod() public static méthode

public static callProtectedMethod ( $object, $method, array $args = [] )
$args array

setUp() public méthode

Setup the class for testing
public setUp ( )

tearDown() protected méthode

Remove unnecessary files/directories
protected tearDown ( )

testCanGetScannedContentFromJsonFile() public méthode

testCanPopulatePathUsingInputFile() public méthode

testCanProbePathAndGenerateArrayOfContent() public méthode

testCanScanPathAndCreateValidResponseFile() public méthode

testCanScanPathAndGetResult() public méthode

testGettingContentThrowsExceptionForEmptyFile() public méthode

testGettingContentThrowsExceptionForInvalidFile() public méthode

testThrowsExceptionTryingToScanInvalidPath() public méthode