Skip to content

ganhuaruanti/LaravelTDDTraining

Repository files navigation

Laravel TDD 教材

準備步驟

git clone 這個專案之後,運行

$ composer update

之後運行

$ vendor/phpunit/phpunit/phpunit

應該可以看到

PHPUnit 7.5.15 by Sebastian Bergmann and contributors.

..SSSSSSSSSSSS                                                                  2 / 2 (100%)

Time: 650 ms, Memory: 18.00 MB

OK, but incomplete, skipped, or risky tests!
Tests: 14, Assertions: 2, Skipped: 12.

題目

以下準備幾題題目,供大家練習測試驅動開發。

題目順序建議依照編號由小到大練習

  1. FizzBuzz
  2. 質因數分解
  3. Tennis
  4. Hello world
  5. 閏年
  6. 身分證字號驗證

About

Laravel TDD 教材

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages