This commit is contained in:
wangjinlei
2024-12-31 10:28:40 +08:00
parent 145b0ab8a5
commit a54a837670
1179 changed files with 2686 additions and 230376 deletions

View File

@@ -64,4 +64,4 @@ class CropTest extends TestCase
@unlink($pathname);
}
}
}

View File

@@ -27,7 +27,6 @@ class FlipTest extends TestCase
@unlink($pathname);
}
public function testGif()
{
$pathname = TEST_PATH . 'tmp/flip.gif';
@@ -40,4 +39,4 @@ class FlipTest extends TestCase
@unlink($pathname);
}
}
}

View File

@@ -37,7 +37,6 @@ class InfoTest extends TestCase
$this->assertEquals([800, 600], $image->size());
}
public function testPng()
{
$image = Image::open($this->getPng());
@@ -57,4 +56,4 @@ class InfoTest extends TestCase
$this->assertEquals('image/gif', $image->mime());
$this->assertEquals([380, 216], $image->size());
}
}
}

View File

@@ -39,4 +39,4 @@ class RotateTest extends TestCase
@unlink($pathname);
}
}
}

View File

@@ -30,4 +30,4 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase
{
return new File(TEST_PATH . 'images/test.gif');
}
}
}

View File

@@ -55,4 +55,4 @@ class TextTest extends TestCase
@unlink($pathname);
}
}
}

View File

@@ -103,7 +103,6 @@ class ThumbTest extends TestCase
@unlink($pathname);
}
public function testPng()
{
$pathname = TEST_PATH . 'tmp/thumb.png';
@@ -281,4 +280,4 @@ class ThumbTest extends TestCase
@unlink($pathname);
}
}
}

View File

@@ -55,4 +55,4 @@ class WaterTest extends TestCase
@unlink($pathname);
}
}
}

View File

@@ -12,4 +12,4 @@ define('TEST_PATH', __DIR__ . '/');
// 加载框架基础文件
require __DIR__ . '/../thinkphp/base.php';
\think\Loader::addNamespace('tests', TEST_PATH);
\think\Loader::addNamespace('think', __DIR__ . '/../src/');
\think\Loader::addNamespace('think', __DIR__ . '/../src/');