Kohana 3.3和Phpunit测试cmd线没有Minion mod

时间:2016-09-29 22:38:55

标签: php phpunit command-line-interface kohana-3.3

我正在尝试让Phpunit命令行工作Kohana 3.3.1和Php,但是它给出了这个错误:

  

请启用Minion模块以获得CLI支持。

我不想这样做,因为Phpunit测试可以通过GUI正常工作。

phpunit.xml:

<phpunit colors="true" bootstrap="../../index.php">
    <testsuites>
        <testsuite name="Kohana Tests">
            <directory>./</directory>
        </testsuite>
    </testsuites>
</phpunit>

示例测试类:

<?php defined('SYSPATH') OR die('No direct script access.');

class SampleTest extends Kohana_Unittest_TestCase {
    public function testAdd()
    {
        $post = array();

        $username = Arr::get($post, 'username');

        $this->assertEquals($username, null);
    }
}

是否可以在不使用Minion的情况下通过cmd行运行phpunit?如果是这样的话?

0 个答案:

没有答案