An open API service indexing awesome lists of open source software.

https://github.com/m0a/travis_ci_sample

Travis CIをさわってみるためのサンプル
https://github.com/m0a/travis_ci_sample

Last synced: 10 months ago
JSON representation

Travis CIをさわってみるためのサンプル

Awesome Lists containing this project

README

          

# travis_ci_sample
Travis CIをさわってみるためのサンプル

----
## 入っているもの
### Calculator.php
テスト対象のクラスファイル。
2個の引数の和を返すaddメソッドを持つ。

### tests/CalculatorTest.php
Calculatorクラスのテスト。
addメソッドに引数1と2を渡し、3が返ってくるかどうかのテストケースが入っている。

### vendor/
composerで入れたphpunitとかtestrunnerとか。

----
## とりあえず手動でphpunitでテストするには
`./vendor/bin/phpunit tests/CalculatorTest.php`

----
## それをtestrunnerでテストするには

`./vendor/bin/testrunner phpunit -p vendor/autoload.php -a tests`