PHP Class ImboUnitTest\Model\ImageTest

Inheritance: extends PHPUnit_Framework_TestCase
Datei anzeigen Open project: imbo/imbo

Public Methods

Method Description
getFileExtensions ( ) : array Get mime types and file extensions
getMimeTypes ( ) : array[] Data provider
getSupportedMimeTypes ( ) : array Get mime types and whether or not they are supported
setUp ( ) Set up the model
tearDown ( ) Tear down the model
testCanGetAFileExtensionBasedOnAMimeType ( $type, $extension )
testCanInformAboutSupportedMimeType ( $type, $result )
testCanSetAndGetBlob ( )
testCanSetAndGetExtension ( )
testCanSetAndGetHeight ( )
testCanSetAndGetMetadata ( )
testCanSetAndGetMimeType ( )
testCanSetAndGetTheAddedDate ( )
testCanSetAndGetTheImageIdentifier ( )
testCanSetAndGetTheOriginalChecksum ( )
testCanSetAndGetTheUpdatedDate ( )
testCanSetAndGetTheUser ( )
testCanSetAndGetWidth ( )
testCanUpdateTransformationFlag ( )
testGetData ( )
testSetsTheCorrectMimeTypeWhenAMappedOneIsUsed ( $set, $get )

Method Details

getFileExtensions() public method

Get mime types and file extensions
public getFileExtensions ( ) : array
return array

getMimeTypes() public method

Data provider
public getMimeTypes ( ) : array[]
return array[]

getSupportedMimeTypes() public method

Get mime types and whether or not they are supported
public getSupportedMimeTypes ( ) : array
return array

setUp() public method

Set up the model
public setUp ( )

tearDown() public method

Tear down the model
public tearDown ( )

testCanGetAFileExtensionBasedOnAMimeType() public method

public testCanGetAFileExtensionBasedOnAMimeType ( $type, $extension )

testCanInformAboutSupportedMimeType() public method

public testCanInformAboutSupportedMimeType ( $type, $result )

testCanSetAndGetBlob() public method

testCanSetAndGetExtension() public method

testCanSetAndGetHeight() public method

testCanSetAndGetMetadata() public method

testCanSetAndGetMimeType() public method

testCanSetAndGetTheAddedDate() public method

testCanSetAndGetTheImageIdentifier() public method

testCanSetAndGetTheOriginalChecksum() public method

testCanSetAndGetTheUpdatedDate() public method

testCanSetAndGetTheUser() public method

testCanSetAndGetWidth() public method

testCanUpdateTransformationFlag() public method

testGetData() public method

public testGetData ( )

testSetsTheCorrectMimeTypeWhenAMappedOneIsUsed() public method