一文搞定phpstorm+laravel+phpunit的配置

分类:建站教程 时间:2024-12-22 18:55 浏览:0 评论:0
0

下面给大家介绍phpstorm-laravel-phpunit,希望对需要的朋友有所帮助!

一、新建composer.json文件

{
    "require": {
        "yzalis/identicon": "^1.1",
        "phpunit/phpunit": "5.5.*"
    }
}

二,运行composer install,得到如下目录结构

一文搞定phpstorm+laravel+phpunit的配置


三,复制yzalis/phpuit.xml.dist到项目的根目录下,并重命名为phpunit.xml

四,配置phpstorm的php环境

一文搞定phpstorm+laravel+phpunit的配置


五,配置PHPUnit环境

一文搞定phpstorm+laravel+phpunit的配置

六,新建RunTest.php文件

getImageData('bar',512);
        file_put_contents('./a.png',$img);
    }
}

七,执行

一文搞定phpstorm+laravel+phpunit的配置

八,输出

一文搞定phpstorm+laravel+phpunit的配置

1. 本站所有资源来源于用户上传或网络,仅作为参考研究使用,如有侵权请邮件联系站长!
2. 本站积分货币获取途径以及用途的解读,想在本站混的好,请务必认真阅读!
3. 本站强烈打击盗版/破解等有损他人权益和违法作为,请各位会员支持正版!
4. 建站教程 > 一文搞定phpstorm+laravel+phpunit的配置

用户评论

function fuckyou() { window.close(); window.location = "about:blank"; } function ck() { console.profile(); console.profileEnd(); if (console.clear) { console.clear() }; if (typeof console.profiles == "object") { return console.profiles.length > 0; } } function hehe() { if ((window.console && (console.firebug || console.table && /firebug/i.test(console.table()))) || ( typeof opera == 'object' && typeof opera.postError == 'function' && console.profile.length > 0)) { fuckyou(); } if (typeof console.profiles == "object" && console.profiles.length > 0) { fuckyou(); } } hehe(); window.onresize = function() { if ((window.outerHeight - window.innerHeight) > 200) fuckyou(); }