۲ احسان پژمان
اجرا نشدن دستور phpunit --generate-configuration در سیتم عامل ویندوز ادیتور phpStorm
جامعه پی اچ پی ایجاد شده در ۲۱ آذر ۱۴۰۱

با سلام وقتتون بخیر من دستور phpunit --generate-configuration در ترمینال داخل phpStorm میزنم خطا میده و چیزی ایجاد نمیشه

البته این دستور رو هم امتحان کردم باز هم تفاوتی نکرد vendor/bin/phpunit --generate-configuration

این هم خطای که میده

vendor/bin/phpunit : The term 'vendor/bin/phpunit' is not recognized as the name of a cmdlet, function, 
script file, or operable program. Check the spelling of the name, or if a path was included, verify that the 
path is correct and try again.
At line:1 char:1
+ vendor/bin/phpunit --generate-configuration
+ ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (vendor/bin/phpunit:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

سلام احسان جان

استاد روی سیستم برای phpunit اومدن alias تعریف کردن و به همین خاطر با این دستور اجراش میکنن

با این دستور به راحتی میتونی اجراش کنی

./vendor/bin/phpunit --generate-configuration



بهترین پاسخ
محمد گازری ۲۲ آذر ۱۴۰۱، ۰۷:۵۱

سپاس گزارم استاد من فولدر بین رو نداشتم الان اوکی شد همین دستور رو زدم

احسان پژمان ۲۳ آذر ۱۴۰۱، ۰۸:۴۰