MediaWiki
REL1_22
|
Mock handler for images. More...
Static Public Member Functions | |
static | doFakeTransform ($that, $image, $dstPath, $dstUrl, $params, $flags=0) |
Override BitmapHandler::doTransform() making sure we do not generate a thumbnail at all. |
Mock handler for images.
This is really intended for unit testing.
Definition at line 44 of file MockBitmapHandler.php.
static MockImageHandler::doFakeTransform | ( | $ | that, |
$ | image, | ||
$ | dstPath, | ||
$ | dstUrl, | ||
$ | params, | ||
$ | flags = 0 |
||
) | [static] |
Override BitmapHandler::doTransform() making sure we do not generate a thumbnail at all.
That is merely returning a ThumbnailImage that will be consumed by the unit test. There is no need to create a real thumbnail on the filesystem.
Definition at line 52 of file MockBitmapHandler.php.
References $params, array(), as, of, on, page, wfDebug(), and will.
Referenced by MockBitmapHandler\doTransform(), and MockSvgHandler\doTransform().