aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/includes/PhotodriverTest.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-11-26 08:43:03 +0000
committerMario <mario@mariovavti.com>2020-11-26 08:43:03 +0000
commit21cd4a1b4845858c3421dbd5f2673eceee421f5d (patch)
tree56d80b7e16f99d8037e8ff48431aa9d191ff39dd /tests/unit/includes/PhotodriverTest.php
parente9a50371f5dd4cffb0ba4894f2286b28e8f535b9 (diff)
downloadvolse-hubzilla-21cd4a1b4845858c3421dbd5f2673eceee421f5d.tar.gz
volse-hubzilla-21cd4a1b4845858c3421dbd5f2673eceee421f5d.tar.bz2
volse-hubzilla-21cd4a1b4845858c3421dbd5f2673eceee421f5d.zip
psr-4 autoloading standard
Diffstat (limited to 'tests/unit/includes/PhotodriverTest.php')
-rw-r--r--tests/unit/includes/PhotodriverTest.php39
1 files changed, 0 insertions, 39 deletions
diff --git a/tests/unit/includes/PhotodriverTest.php b/tests/unit/includes/PhotodriverTest.php
deleted file mode 100644
index 6f6ad0ffe..000000000
--- a/tests/unit/includes/PhotodriverTest.php
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php
-
-namespace Zotlabs\Tests\Unit\includes;
-
-//use Zotlabs\Photo\PhotoGd;
-use Zotlabs\Tests\Unit\UnitTestCase;
-//use phpmock\phpunit\PHPMock;
-
-/**
- * @brief Unit Test cases for include/photo/photo_driver.php file.
- */
-class PhotodriverTest extends UnitTestCase {
- //use PHPMock;
-
- public function testPhotofactoryReturnsNullForUnsupportedType() {
- // php-mock can not mock global functions which is called by a global function.
- // If the calling function is in a namespace it would work.
- //$logger = $this->getFunctionMock(__NAMESPACE__, 'logger');
- //$logger->expects($this->once());
-
- //$ph = \photo_factory('', 'image/bmp');
- //$this->assertNull($ph);
-
- $this->markTestIncomplete('Need to mock logger(), otherwise not unit testable.');
- }
-
- public function testPhotofactoryReturnsPhotogdIfConfigIgnore_imagickIsSet() {
- // php-mock can not mock global functions which is called by a global function.
- // If the calling function is in a namespace it would work.
- //$gc = $this->getFunctionMock(__NAMESPACE__, 'get_config');
- // simulate get_config('system', 'ignore_imagick') configured
- //$gc->expects($this->once())->willReturn(1)
-
- //$ph = \photo_factory(file_get_contents('images/hz-16.png'), 'image/png');
- //$this->assertInstanceOf(PhotoGd::class, $ph);
-
- $this->markTestIncomplete('Need to mock get_config(), otherwise not unit testable.');
- }
-} \ No newline at end of file