PHP 클래스 Kraken\_Unit\Filesystem\FilesystemTest

상속: extends Kraken\Test\TUnit
파일 보기 프로젝트 열기: kraken-php/framework

공개 메소드들

메소드 설명
createFilesystem ( $internal ) : Kraken\Filesystem\FilesystemInterface
expect ( $method, $args = [], $times = 1 ) : Prophecy\Prophecy\MethodProphecy
prevent ( $method, $args = [] ) : Prophecy\Prophecy\MethodProphecy
setUp ( )
testApiAppend_CallsUpdateOnModel_WithExistingContents ( )
testApiAppend_ThrowsException_WhenReadThrowsException ( )
testApiAppend_ThrowsException_WhenUpdateThrowsException ( )
testApiCopyFile_CallsCopyOnModel ( )
testApiCopyFile_ThrowsException_WhenModelThrowsException ( )
testApiCreateFile_CallsWriteOnModel_WithConfig ( )
testApiCreateFile_ThrowsException_WhenLegueWriteThrowsException ( )
testApiCreate_CallsWriteOnModel_WithConfig ( )
testApiCreate_ThrowsException_WhenLegueWriteThrowsException ( )
testApiEraseFile_CallsUpdateOnModel ( )
testApiEraseFile_ThrowsException_WhenUpdateOnModelThrowsException ( )
testApiExists_ReturnsFalse_WhenModelHasReturnsFalse ( )
testApiExists_ReturnsTrue_WhenModelHasReturnsTrue ( )
testApiExists_ThrowsException_WhenModelHasThrowsException ( )
testApiGetMimetype_ReturnsMimetype_UsingGetMetadataOnModel ( )
testApiGetMimetype_ThrowsException_WhenGetMetadataOnModelThrowsException ( )
testApiGetSize_CallsGetSizeOnModel ( )
testApiGetSize_ThrowsException_WhenGetSizeOnModelThrowsException ( )
testApiGetTimestamp_ReturnsMimetype_UsingGetMetadataOnModel ( )
testApiGetTimestamp_ThrowsException_WhenGetMetadataOnModelThrowsException ( )
testApiGetType_ReturnsType_UsingGetMetadataOnModel ( )
testApiGetType_ThrowsException_WhenGetMetadataOnModelThrowsException ( )
testApiGetVisibility_ReturnsSameValue_AsModelGetVisibility ( )
testApiGetVisibility_ThrowsException_WhenModelThrowsException ( )
testApiIsDir_ReturnsFalse_WhenModelDoesNotReturnMetadataForDir ( )
testApiIsDir_ReturnsTrue_WhenModelReturnsMetadataForDir ( )
testApiIsDir_ThrowsException_WhenModelThrowsException ( )
testApiIsFile_ReturnsFalse_WhenModelDoesNotReturnMetadataForFile ( )
testApiIsFile_ReturnsTrue_WhenModelReturnsMetadataForFile ( )
testApiIsFile_ThrowsException_WhenModelThrowsException ( )
testApiIsPrivate_RethrowsException ( )
testApiIsPrivate_ReturnsFalse_WhenVisibilityIsNotPrivate ( )
testApiIsPrivate_ReturnsTrue_WhenVisibilityIsPrivate ( )
testApiIsPublic_RethrowsException ( )
testApiIsPublic_ReturnsFalse_WhenVisibilityIsNotPublic ( )
testApiIsPublic_ReturnsTrue_WhenVisibilityIsPublic ( )
testApiMove_ReturnsNull_WhenModelMoveReturnsTrue ( )
testApiMove_ThrowsException_WhenModelMoveReturnsFalse ( )
testApiMove_ThrowsException_WhenModelMoveThrowsException ( )
testApiPrepend_CallsUpdateOnModel_WithExistingContents ( )
testApiPrepend_ThrowsException_WhenReadThrowsException ( )
testApiPrepend_ThrowsException_WhenUpdateThrowsException ( )
testApiRead_ReturnsReadString_WhenReadWasSuccessful ( )
testApiRead_ThrowsException_WhenModelReadThrowsException ( )
testApiRead_ThrowsException_WhenReadWasNotSuccessful ( )
testApiRemoveFile_CallsDeleteOnModel ( )
testApiRemoveFile_ThrowsException_WhenDeleteOnModelThrowsException ( )
testApiReq_ThrowsException_WhenModelReadThrowsException ( )
testApiReq_UsesEvalToIncludePhpFilesFromExternalSources ( )
testApiSetPrivate_SetsPrivate_WhenSettingIsPossible ( )
testApiSetPrivate_ThrowsException_WhenModelThrows ( )
testApiSetPrivate_ThrowsException_WhenSettingIsNotPossible ( )
testApiSetPublic_SetsPublic_WhenSettingIsPossible ( )
testApiSetPublic_ThrowsException_WhenModelThrows ( )
testApiSetPublic_ThrowsException_WhenSettingIsNotPossible ( )
testApiSetVisibility_SetsVisibility_WhenSettingIsPossible ( )
testApiSetVisibility_ThrowsException_WhenModelThrows ( )
testApiSetVisibility_ThrowsException_WhenSettingIsNotPossible ( )
testApiWrite_CallsPutOnModel_WithConfig ( )
testApiWrite_ThrowsException_WhenModelPutThrowsException ( )

비공개 메소드들

메소드 설명
prepareConfig ( $visibility ) : string[]

메소드 상세

createFilesystem() 공개 메소드

public createFilesystem ( $internal ) : Kraken\Filesystem\FilesystemInterface
리턴 Kraken\Filesystem\FilesystemInterface

expect() 공개 메소드

public expect ( $method, $args = [], $times = 1 ) : Prophecy\Prophecy\MethodProphecy
리턴 Prophecy\Prophecy\MethodProphecy

prevent() 공개 메소드

public prevent ( $method, $args = [] ) : Prophecy\Prophecy\MethodProphecy
리턴 Prophecy\Prophecy\MethodProphecy

setUp() 공개 메소드

public setUp ( )

testApiAppend_CallsUpdateOnModel_WithExistingContents() 공개 메소드

testApiAppend_ThrowsException_WhenReadThrowsException() 공개 메소드

testApiAppend_ThrowsException_WhenUpdateThrowsException() 공개 메소드

testApiCopyFile_CallsCopyOnModel() 공개 메소드

testApiCopyFile_ThrowsException_WhenModelThrowsException() 공개 메소드

testApiCreateFile_CallsWriteOnModel_WithConfig() 공개 메소드

testApiCreateFile_ThrowsException_WhenLegueWriteThrowsException() 공개 메소드

testApiCreate_CallsWriteOnModel_WithConfig() 공개 메소드

testApiCreate_ThrowsException_WhenLegueWriteThrowsException() 공개 메소드

testApiEraseFile_CallsUpdateOnModel() 공개 메소드

testApiEraseFile_ThrowsException_WhenUpdateOnModelThrowsException() 공개 메소드

testApiExists_ReturnsFalse_WhenModelHasReturnsFalse() 공개 메소드

testApiExists_ReturnsTrue_WhenModelHasReturnsTrue() 공개 메소드

testApiExists_ThrowsException_WhenModelHasThrowsException() 공개 메소드

testApiGetMimetype_ReturnsMimetype_UsingGetMetadataOnModel() 공개 메소드

testApiGetMimetype_ThrowsException_WhenGetMetadataOnModelThrowsException() 공개 메소드

testApiGetSize_CallsGetSizeOnModel() 공개 메소드

testApiGetSize_ThrowsException_WhenGetSizeOnModelThrowsException() 공개 메소드

testApiGetTimestamp_ReturnsMimetype_UsingGetMetadataOnModel() 공개 메소드

testApiGetTimestamp_ThrowsException_WhenGetMetadataOnModelThrowsException() 공개 메소드

testApiGetType_ReturnsType_UsingGetMetadataOnModel() 공개 메소드

testApiGetType_ThrowsException_WhenGetMetadataOnModelThrowsException() 공개 메소드

testApiGetVisibility_ReturnsSameValue_AsModelGetVisibility() 공개 메소드

testApiGetVisibility_ThrowsException_WhenModelThrowsException() 공개 메소드

testApiIsDir_ReturnsFalse_WhenModelDoesNotReturnMetadataForDir() 공개 메소드

testApiIsDir_ReturnsTrue_WhenModelReturnsMetadataForDir() 공개 메소드

testApiIsDir_ThrowsException_WhenModelThrowsException() 공개 메소드

testApiIsFile_ReturnsFalse_WhenModelDoesNotReturnMetadataForFile() 공개 메소드

testApiIsFile_ReturnsTrue_WhenModelReturnsMetadataForFile() 공개 메소드

testApiIsFile_ThrowsException_WhenModelThrowsException() 공개 메소드

testApiIsPrivate_RethrowsException() 공개 메소드

testApiIsPrivate_ReturnsFalse_WhenVisibilityIsNotPrivate() 공개 메소드

testApiIsPrivate_ReturnsTrue_WhenVisibilityIsPrivate() 공개 메소드

testApiIsPublic_RethrowsException() 공개 메소드

testApiIsPublic_ReturnsFalse_WhenVisibilityIsNotPublic() 공개 메소드

testApiIsPublic_ReturnsTrue_WhenVisibilityIsPublic() 공개 메소드

testApiMove_ReturnsNull_WhenModelMoveReturnsTrue() 공개 메소드

testApiMove_ThrowsException_WhenModelMoveReturnsFalse() 공개 메소드

testApiMove_ThrowsException_WhenModelMoveThrowsException() 공개 메소드

testApiPrepend_CallsUpdateOnModel_WithExistingContents() 공개 메소드

testApiPrepend_ThrowsException_WhenReadThrowsException() 공개 메소드

testApiPrepend_ThrowsException_WhenUpdateThrowsException() 공개 메소드

testApiRead_ReturnsReadString_WhenReadWasSuccessful() 공개 메소드

testApiRead_ThrowsException_WhenModelReadThrowsException() 공개 메소드

testApiRead_ThrowsException_WhenReadWasNotSuccessful() 공개 메소드

testApiRemoveFile_CallsDeleteOnModel() 공개 메소드

testApiRemoveFile_ThrowsException_WhenDeleteOnModelThrowsException() 공개 메소드

testApiReq_ThrowsException_WhenModelReadThrowsException() 공개 메소드

testApiReq_UsesEvalToIncludePhpFilesFromExternalSources() 공개 메소드

testApiSetPrivate_SetsPrivate_WhenSettingIsPossible() 공개 메소드

testApiSetPrivate_ThrowsException_WhenModelThrows() 공개 메소드

testApiSetPrivate_ThrowsException_WhenSettingIsNotPossible() 공개 메소드

testApiSetPublic_SetsPublic_WhenSettingIsPossible() 공개 메소드

testApiSetPublic_ThrowsException_WhenModelThrows() 공개 메소드

testApiSetPublic_ThrowsException_WhenSettingIsNotPossible() 공개 메소드

testApiSetVisibility_SetsVisibility_WhenSettingIsPossible() 공개 메소드

testApiSetVisibility_ThrowsException_WhenModelThrows() 공개 메소드

testApiSetVisibility_ThrowsException_WhenSettingIsNotPossible() 공개 메소드

testApiWrite_CallsPutOnModel_WithConfig() 공개 메소드

testApiWrite_ThrowsException_WhenModelPutThrowsException() 공개 메소드