Home>Article>Development Tools> One article to complete the configuration of phpstorm+laravel+phpunit

One article to complete the configuration of phpstorm+laravel+phpunit

藏色散人
藏色散人 forward
2022-02-01 04:00:31 3440browse

The following is an introduction to phpstorm-laravel-phpunit from thephpstormtutorial column. I hope it will be helpful to friends in need!

1. Create a new composer.json file

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

2. Run composer install to get the following directory structure

One article to complete the configuration of phpstorm+laravel+phpunit

Third, copyyzalis/phpuit.xml.distto the root directory of the project and rename it tophpunit.xml

Four, configure the php environment of phpstorm

One article to complete the configuration of phpstorm+laravel+phpunit

Five, configure the PHPUnit environment

One article to complete the configuration of phpstorm+laravel+phpunit

Six, Create a new RunTest.php file

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

7, execute

One article to complete the configuration of phpstorm+laravel+phpunit

##8, output

One article to complete the configuration of phpstorm+laravel+phpunit

The above is the detailed content of One article to complete the configuration of phpstorm+laravel+phpunit. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete