PHP 클래스 KamranAhmed\Smasher\ScannerTest

Tests the Scanner class
상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: kamranahmedse/smasher

공개 메소드들

메소드 설명
callProtectedMethod ( $object, $method, array $args = [] )
setUp ( ) Setup the class for testing
testCanGetScannedContentFromJsonFile ( )
testCanPopulatePathUsingInputFile ( )
testCanProbePathAndGenerateArrayOfContent ( )
testCanScanPathAndCreateValidResponseFile ( )
testCanScanPathAndGetResult ( )
testGettingContentThrowsExceptionForEmptyFile ( )
testGettingContentThrowsExceptionForInvalidFile ( )
testThrowsExceptionTryingToScanInvalidPath ( )

보호된 메소드들

메소드 설명
tearDown ( ) Remove unnecessary files/directories

비공개 메소드들

메소드 설명
isValidJson ( $json )
removeDirectory ( $directory )

메소드 상세

callProtectedMethod() 공개 정적인 메소드

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

setUp() 공개 메소드

Setup the class for testing
public setUp ( )

tearDown() 보호된 메소드

Remove unnecessary files/directories
protected tearDown ( )

testCanGetScannedContentFromJsonFile() 공개 메소드

testCanPopulatePathUsingInputFile() 공개 메소드

testCanProbePathAndGenerateArrayOfContent() 공개 메소드

testCanScanPathAndCreateValidResponseFile() 공개 메소드

testCanScanPathAndGetResult() 공개 메소드

testGettingContentThrowsExceptionForEmptyFile() 공개 메소드

testGettingContentThrowsExceptionForInvalidFile() 공개 메소드

testThrowsExceptionTryingToScanInvalidPath() 공개 메소드