sublime-phpunit icon indicating copy to clipboard operation
sublime-phpunit copied to clipboard

Class '<SOMECLASS>' could not be found in '<SOMEPATH>'

Open ipol2n opened this issue 10 years ago • 3 comments

Hi,

I tried to run phpunit on my laravel 4.2 project with Sublime 3 on Windows 10. (Before I upgraded to Windows 10, everything worked fine) I got this error :

PHPUnit 3.7.21 by Sebastian Bergmann. Class 'SubjectTest' could not be found in '\app\tests\models\SubjectTest.php'. [Finished in 0.2s]

And here is my SubjectTest.php

<?php
class SubjectTest extends TestCase {
...
}

Do you have any idea how to solve this problem?

Thank you.

ipol2n avatar Aug 10 '15 17:08 ipol2n

When I enable debugging, I found this

phpunit SubjectTest \app\tests\models\SubjectTest.php

I tried this command in cmd, it also failed.

But when I tried with the following command (without backslash at the beginning), it passed.

phpunit SubjectTest app\tests\models\SubjectTest.php

Hope this help.

ipol2n avatar Aug 12 '15 08:08 ipol2n

Thanks. I'll see what's going on.

On 12 Aug 2015, at 09:32, ipol2n [email protected] wrote:

When I enable debugging, I found this

phpunit SubjectTest \app\tests\models\SubjectTest.php I tried this command in cmd, it also failed.

But when I tried with the following command (without backslash at the beginning), it passed.

phpunit SubjectTest app\tests\models\SubjectTest.php

Hope this help.

— Reply to this email directly or view it on GitHub.

stuartherbert avatar Aug 12 '15 08:08 stuartherbert

Hi. Any news about this issue? I have just installed the packege ant it seems the problem i still happening. My case: ST3 + W7

Thanks!

marcellorvalle avatar Jan 11 '16 22:01 marcellorvalle