return FALSE; $r = well_tag_thread__update(array('id' => $id), $update); return $r; } function well_tag_thread_find($tagid, $page, $pagesize) { $arr = well_tag_thread__find(array('tagid' => $tagid), array('id' => -1), $page, $pagesize); return $arr; } function well_tag_thread_find_by_tid($tid, $page, $pagesize) { $arr = well_tag_thread__find(array('tid' => $tid), array(), $page, $pagesize); return $arr; } ?>commandline phpunit always giving file * not found - Stack Overflow
最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

commandline phpunit always giving file * not found - Stack Overflow

programmeradmin1浏览0评论

I installed phpunit on my laptop and all works fine, but on installation on my PC, when I type phpunit . or phpunit xyzTest.php I get:

PHPUnit 12.0.8` by Sebastian Bergmann and contributors.

Test file "*" not found

Is this because I installed phpunit globally? And if this is the case what can I do? Unistall and reinstall for the local user only?

Test files use the xyxTest.php naming convention, such as userTest.php.

The test folder has a phpunit.xml with this content:

<?xml version="1.0" encoding="utf-8" ?>
<phpunit>
<testsuite name='My Test Suit'>
    <directory suffix='.php'>./</directory>
</testsuite>
</phpunit>

I installed phpunit on my laptop and all works fine, but on installation on my PC, when I type phpunit . or phpunit xyzTest.php I get:

PHPUnit 12.0.8` by Sebastian Bergmann and contributors.

Test file "*" not found

Is this because I installed phpunit globally? And if this is the case what can I do? Unistall and reinstall for the local user only?

Test files use the xyxTest.php naming convention, such as userTest.php.

The test folder has a phpunit.xml with this content:

<?xml version="1.0" encoding="utf-8" ?>
<phpunit>
<testsuite name='My Test Suit'>
    <directory suffix='.php'>./</directory>
</testsuite>
</phpunit>
Share Improve this question edited Mar 21 at 10:51 Toby Speight 31.3k52 gold badges76 silver badges113 bronze badges asked Mar 19 at 15:55 Aldo Cauchi SavonaAldo Cauchi Savona 315 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Sorry was my mistake. in the phunit.cmd batch file, I missed a %before the * hence commandpromt alway grumbling about *

The batch file has:

@php "%~dp0phpunit.phar" %* 

Last % was missing, My baad!

发布评论

评论列表(0)

  1. 暂无评论