PHP Class TestTimberImage

Inheritance: extends Timber_UnitTestCase
Mostra file Open project: jarednova/timber Class Usage Examples

Public Methods

Method Description
_filter_upload ( $data )
add_lang_to_home ( $url, $path, $orig_scheme, $blog_id )
checkChannel ( $channel, $base, $compare, $upper = false )
checkPixel ( $file, $x, $y, $color = '#FFFFFF', $upper_color = false )
checkSize ( $file, $width, $height )
copyTestImage ( $img = 'arch.jpg', $dest_name = null )
getTestImageURL ( $img = 'arch.jpg', $relative = false )
get_image_attachment ( $pid, $file = 'arch.jpg' )
get_post_with_image ( )
get_timber_image_object ( $file = 'cropper.png' )
is_connected ( )
is_gif ( $file )
is_png ( $file )
replace_image ( $old_id, $new_id ) * ---------------- Helper functions ----------------
testAnimatedGifResize ( )
testBogusResizeNamed ( )
testExternalImageResize ( )
testGifToJpg ( )
testImageAltText ( )
testImageArray ( )
testImageDeletion ( )
testImageDeletionByAttachmentLocation ( )
testImageDeletionByDeletingAttachment ( )
testImageDeletionByURL ( )
testImageDeletionSimilarNames ( )
testImageHelperInit ( )
testImageLink ( )
testImageMeta ( )
testImageNoParent ( )
testImageParent ( )
testImagePath ( )
testImageResize ( )
testImageResizeRelative ( )
testImageSizeWithWPNameUsingNative ( )
testImageSizeWithWPNameUsingNativeGif ( )
testImageSizes ( )
testImageWidthWithFilter ( )
testInitFromFilePath ( )
testInitFromID ( )
testInitFromRelativePath ( )
testInitFromURL ( )
testIsNotAGif ( )
testIsNotAGifFile ( )
testLetterboxFileNaming ( )
testLetterboxImageDeletion ( )
testNoThumbnail ( )
testPNGtoJPG ( )
testPathInfo ( )
testPostThumbnails ( )
testPostThumbnailsNamed ( )
testPostThumbnailsWithWPName ( )
testReplacedImage ( ) * ---------------- Tests ----------------
testResizeFileNaming ( )
testResizeFileNamingWithAbsoluteURL ( )
testResizeFileNamingWithLangHome ( )
testResizeGif ( )
testResizeNamed ( )
testResizeTallImage ( )
testResizedReplacedImage ( )
testThemeImageLetterbox ( )
testThemeImageResize ( )
testTimberImageForExtraSlashes ( )
testTimberImageFromAttachment ( )
testTimberImageFromImageID ( )
testTimberImageFromPost ( )
testTimberImageFromTimberImage ( )
testTimberImageFromTimberImageID ( )
testUpSizing ( )
testUpSizing2Param ( )
testWithOutputBuffer ( )

Method Details

_filter_upload() public method

public _filter_upload ( $data )

add_lang_to_home() public method

public add_lang_to_home ( $url, $path, $orig_scheme, $blog_id )

checkChannel() public static method

public static checkChannel ( $channel, $base, $compare, $upper = false )

checkPixel() public static method

public static checkPixel ( $file, $x, $y, $color = '#FFFFFF', $upper_color = false )

checkSize() public static method

public static checkSize ( $file, $width, $height )

copyTestImage() static public method

static public copyTestImage ( $img = 'arch.jpg', $dest_name = null )

getTestImageURL() static public method

static public getTestImageURL ( $img = 'arch.jpg', $relative = false )

get_image_attachment() public static method

public static get_image_attachment ( $pid, $file = 'arch.jpg' )

get_post_with_image() public method

public get_post_with_image ( )

get_timber_image_object() public static method

public static get_timber_image_object ( $file = 'cropper.png' )

is_connected() public static method

public static is_connected ( )

is_gif() public static method

public static is_gif ( $file )

is_png() public static method

public static is_png ( $file )

replace_image() static public method

* ---------------- Helper functions ----------------
static public replace_image ( $old_id, $new_id )

testAnimatedGifResize() public method

testBogusResizeNamed() public method

testExternalImageResize() public method

testGifToJpg() public method

public testGifToJpg ( )

testImageAltText() public method

public testImageAltText ( )

testImageArray() public method

public testImageArray ( )

testImageDeletion() public method

public testImageDeletion ( )

testImageDeletionByAttachmentLocation() public method

testImageDeletionByDeletingAttachment() public method

testImageDeletionByURL() public method

testImageDeletionSimilarNames() public method

testImageHelperInit() public method

public testImageHelperInit ( )

testImageMeta() public method

public testImageMeta ( )

testImageNoParent() public method

public testImageNoParent ( )

testImageParent() public method

public testImageParent ( )

testImagePath() public method

public testImagePath ( )

testImageResize() public method

public testImageResize ( )

testImageResizeRelative() public method

testImageSizeWithWPNameUsingNative() public method

testImageSizeWithWPNameUsingNativeGif() public method

testImageSizes() public method

public testImageSizes ( )

testImageWidthWithFilter() public method

testInitFromFilePath() public method

testInitFromID() public method

public testInitFromID ( )

testInitFromRelativePath() public method

testInitFromURL() public method

public testInitFromURL ( )

testIsNotAGif() public method

public testIsNotAGif ( )

testIsNotAGifFile() public method

public testIsNotAGifFile ( )

testLetterboxFileNaming() public method

testLetterboxImageDeletion() public method

testNoThumbnail() public method

public testNoThumbnail ( )

testPNGtoJPG() public method

public testPNGtoJPG ( )

testPathInfo() public method

public testPathInfo ( )

testPostThumbnails() public method

public testPostThumbnails ( )

testPostThumbnailsNamed() public method

testPostThumbnailsWithWPName() public method

testReplacedImage() public method

* ---------------- Tests ----------------
public testReplacedImage ( )

testResizeFileNaming() public method

testResizeFileNamingWithAbsoluteURL() public method

testResizeFileNamingWithLangHome() public method

testResizeGif() public method

public testResizeGif ( )

testResizeNamed() public method

public testResizeNamed ( )

testResizeTallImage() public method

public testResizeTallImage ( )

testResizedReplacedImage() public method

testThemeImageLetterbox() public method

testThemeImageResize() public method

testTimberImageForExtraSlashes() public method

testTimberImageFromAttachment() public method

testTimberImageFromImageID() public method

testTimberImageFromPost() public method

testTimberImageFromTimberImage() public method

testTimberImageFromTimberImageID() public method

testUpSizing() public method

public testUpSizing ( )

testUpSizing2Param() public method

public testUpSizing2Param ( )

testWithOutputBuffer() public method