PHP用DIコンテナRayテスト
必要なもの | |
* PHP 5.3+ / 5.4 | |
* phpunit | |
以下のコマンドをターミナルで入力します。 | |
$ mkdir raytest | |
$ cd raytest | |
$ git clone git@github.com:koriym/Ray.Di.git | |
$ cd Ray.Di | |
$ git submodule update --init | |
$ phpunit | |
$ php doc/sample-01-db/main.php | |
$ cd ../.. | |
$ rm -rf raytest | |
PHPとphpunitのバージョン、エラー有無&内容をコメントで教えて下さい。 | |
$ php -v | |
$ phpunit -v | |
問題なければ以下のように表示出力されます。 | |
OK (109 tests, 135 assertions) | |
Timer start | |
begin Transaction["Koriym",35] | |
commit | |
Timer stop:[0.0008380] sec | |
Timer start | |
begin Transaction["Bear",19] | |
commit | |
Timer stop:[0.0001712] sec | |
Timer start | |
begin Transaction["Yoshi",25] | |
commit | |
Timer stop:[0.0001609] sec | |
'Name:Koriym Age:35 | |
Name:Bear Age:19 | |
Name:Yoshi Age:25 | |
OK (21 tests, 22 assertions) | |
ご協力ありがとうございます。 |
This comment has been minimized.
This comment has been minimized.
k-holyさん |
This comment has been minimized.
This comment has been minimized.
以下の環境でテストしましたが問題ありませんでした。
|
This comment has been minimized.
This comment has been minimized.
madapajaさん |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
XAMPP1.7.4でテストしました。Windowsのコマンドプロンプトなのでエスケープシーケンスが効いていませんが、テストケースは全てグリーン(表示は白ですが…)でした。
PHP 5.3.5 (cli)
PHPUnit 3.5.14