<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # 基本使用 [phpunit手冊](https://phpunit.de/manual/current/zh_cn/installation.html#installation.requirements) [TOC] ## 目錄介紹 單元測試的代碼存放在 tests 目錄中。目錄介紹如下: ## 運行配置 運行配置文件為phpunit.xml,主要用于初始化啟動程序,配置運行環境參數。開發者一般不需要修改這個文件中的內容。 ## 執行測試 可以使用 make:test 的命令,創建一個測試用例: ``` // 在 feature 目錄下創建一個功能測試類... php hd make:test UserTest // 在 unit 目錄下創建一個單元測試類... php hd make:test UserTest --unit ``` 測試類生成之后,你就可以像平常使用 PHPUnit 一樣來定義測試方法。要運行測試只需要在終端上運行 phpunit 命令即可: ``` phpunit ``` 也可以針對某個文件進行測試 ``` phpunit --verbose tests\\unit\\ExampleTest.php ``` 下面是一個簡單的單元測試類 ``` <?php namespace tests\unit; use tests\Base; /** * 單元測試 * Class ExampleTest * * @package tests\unit */ class ExampleTest extends Base { public function testOne() { $this->assertTrue(true); } } ``` > 如果要在你的測試類自定義自己的 setUp 方法,請確保調用了 parent::setUp() 方法。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看