<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國際加速解決方案。 廣告
                # 第 3 章?命令行測試執行器 PHPUnit 命令行測試執行器可通過 `phpunit` 命令調用。下面的代碼展示了如何用 PHPUnit 命令行測試執行器來運行測試: ~~~ phpunit ArrayTest PHPUnit 5.0.0 by Sebastian Bergmann and contributors. .. Time: 0 seconds OK (2 tests, 2 assertions) ~~~ 上面這個調用例子中,PHPUnit 命令行測試執行器將在當前工作目錄中尋找 `ArrayTest.php` 源文件并加載之。而在此源文件中應當能找到 `ArrayTest` 測試用例類,此類中的測試將被執行。 對于每個測試的運行,PHPUnit 命令行工具輸出一個字符來指示進展: `.` 當測試成功時輸出。 `F` 當測試方法運行過程中一個斷言失敗時輸出。 `E` 當測試方法運行過程中產生一個錯誤時輸出。 `R` 當測試被標記為有風險時輸出(參見[Chapter?6, *有風險的測試*](# "Chapter?6.?有風險的測試"))。 `S` 當測試被跳過時輸出(參見[Chapter?7, *未完成的測試與跳過的測試*](# "Chapter?7.?未完成的測試與跳過的測試"))。 `I` 當測試被標記為不完整或未實現時輸出(參見[Chapter?7, *未完成的測試與跳過的測試*](# "Chapter?7.?未完成的測試與跳過的測試"))。 PHPUnit 區分 失敗(failure)*與*錯誤(error)。失敗指的是被違背了的 PHPUnit 斷言,例如一個失敗的 `assertEquals()` 調用。錯誤指的是意料之外的異常(exception)或 PHP 錯誤。這種差異已被證明在某些時候是非常有用的,因為錯誤往往比失敗更容易修復。如果得到了一個非常長的問題列表,那么最好先對付錯誤,當錯誤全部修復了之后再試一次瞧瞧還有沒有失敗。
                  <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>

                              哎呀哎呀视频在线观看