Created
October 23, 2011 11:54
-
-
Save koriym/1307280 to your computer and use it in GitHub Desktop.
PHP用DIコンテナRayテスト
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
必要なもの | |
* 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) | |
ご協力ありがとうございます。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
以下の環境でテストしましたが問題ありませんでした。