کشف راز

جایی برای کشف راز!

کشف راز

جایی برای کشف راز!

phpstorm http request

https://blog.jetbrains.com/phpstorm/2013/02/using-the-rest-client-within-phpstorm/

https://www.jetbrains.com/help/phpstorm/http-client-in-product-code-editor.html

تست لاراول

https://www.anexia-it.com/blog/de/restful-api-mit-laravel/

https://www.toptal.com/laravel/restful-laravel-api-tutorial

https://pineco.de/testing-your-api-in-laravel/

https://medium.com/@mscherrenberg/unit-testing-your-api-in-laravel-5-6-7172bcdc593d


۱. از ترمینال داخل phpstorm‌ استفاده کنی که در این حالت پاسخ به صورت رنگی نمایش داده نمی‌شود.

۲. از ترمینال ویندوز یا git bash استفاده کنی که پاسخ به صورت رنگی نمایش داده می‌شود.

در این دو حالت باید بری توی پوشه‌ی

/vendor/bin

بعدش این رو اجرا کنی:

./phpunit ../../tests/Feature

البته بستگی داره که می‌خوای بری دنبال Feature test  و یا Unit test.

۳. استفاده از قابلیت خود phpstorm‌ است که در یکی از لینک‌ها نوشته شده. می‌تونه یک تابع تست و یا کل تست را اجرا کند و همان جا نمایش دهد.

phpunit and phpstorm

https://blog.jetbrains.com/phpstorm/2017/01/working-with-phpunit-and-phpstorm/

https://laravel-news.com/phpunit-phpstorm