1
This commit is contained in:
@@ -64,4 +64,4 @@ class CropTest extends TestCase
|
||||
|
||||
@unlink($pathname);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,4 +39,4 @@ class RotateTest extends TestCase
|
||||
|
||||
@unlink($pathname);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,4 +30,4 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
return new File(TEST_PATH . 'images/test.gif');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,4 +55,4 @@ class TextTest extends TestCase
|
||||
|
||||
@unlink($pathname);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,4 +55,4 @@ class WaterTest extends TestCase
|
||||
|
||||
@unlink($pathname);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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/');
|
||||
|
||||
Reference in New Issue
Block a user