123456789101112131415161718192021222324252627282930 |
- <?php
- /**
- * Created by PhpStorm.
- * User: stanley-king
- * Date: 2017/5/20
- * Time: 下午4:09
- */
- define('BASE_ROOT_PATH',str_replace('/test','',dirname(__FILE__)));
- require_once(BASE_ROOT_PATH . '/fooder.php');
- require_once(BASE_ROOT_PATH . '/helper/util_helper.php');
- class TestQRcode extends PHPUnit_Framework_TestCase
- {
- public function testPgenA()
- {
- for ($i = 0; $i < 1000;$i++) {
- $save_path = BASE_UPLOAD_PATH . DS.ATTACH_MQRCODE.DS . "{$i}.png";
- util::qrcode("http://www.baidu.com","{$i}.png");
- }
- }
- public function testPgenB()
- {
- for ($i = 1000; $i < 2000;$i++) {
- $save_path = BASE_UPLOAD_PATH . DS.ATTACH_MQRCODE.DS . "{$i}.png";
- util::qrcode("http://www.baidu.com","{$i}.png");
- }
- }
- }
|