doujiazong0322 2017-11-02 05:16
浏览 262

phpunit Laravel设置

I'm having problems with phpunit in my Laravel project. I cannot run it. I think is because the permissions are not set properly.

I'm trying to run it from my vendor directory:

vendor/bin/phpunit

But, I got a command not found prompt in the terminal. Then, I checked the permissions and they look like this:

-rw-r--r--@ phpunit

Then, I changed to:

-rwxr-xr-x@ phpunit

But, now, I have a permission denied prompt, even if I run the command with the sudo command.

Then, I saw that the psysh has these extra options:

lrwxr-xr-x psysh -> ../psy/psysh/bin/psysh

I guess that could be my issue but, I don't know what that 'l' option means, and that path that is 'linked' to that file. I'd appreciate if someone could help me with this and explain me what that 'l' means and how it works.

Thank you.

  • 写回答

1条回答 默认 最新

  • doujiushi9007 2017-11-03 04:57
    关注

    The „l“ in the file permissions marks a symbolic link. A symbolic link simply points to another file somewhere. The path you see if you use ls is the path to the real file. As for the other problem: i do not know from the top of my head, but i believe there must be a binary-file within the phpunit-folder in the vendor files. Maybe try to call that direct?

    评论

报告相同问题?

悬赏问题

  • ¥20 基于MSP430f5529的MPU6050驱动,求出欧拉角
  • ¥20 Java-Oj-桌布的计算
  • ¥15 powerbuilder中的datawindow数据整合到新的DataWindow
  • ¥20 有人知道这种图怎么画吗?
  • ¥15 pyqt6如何引用qrc文件加载里面的的资源
  • ¥15 安卓JNI项目使用lua上的问题
  • ¥20 RL+GNN解决人员排班问题时梯度消失
  • ¥60 要数控稳压电源测试数据
  • ¥15 能帮我写下这个编程吗
  • ¥15 ikuai客户端l2tp协议链接报终止15信号和无法将p.p.p6转换为我的l2tp线路