設定
http://d.hatena.ne.jp/nakamura001/20120706/1341589197
2014年1月2日木曜日
2013年12月31日火曜日
2013年12月30日月曜日
2013年12月23日月曜日
PHPのnamespace,use
symfony2勉強してて、使うことになったので、勉強
ここが参考になった
http://www.ibm.com/developerworks/jp/opensource/library/os-php-5.3namespaces/?cmp=dw&cpb=dwope&ct=dwrss&cr=dwrss&ccy=jp&csr=040111
なんとなく、ざっくりだけど、
namespaceは現在居るディレクトリを示す
useは、require_onceに近い。
実際は違うけど
ここが参考になった
http://www.ibm.com/developerworks/jp/opensource/library/os-php-5.3namespaces/?cmp=dw&cpb=dwope&ct=dwrss&cr=dwrss&ccy=jp&csr=040111
なんとなく、ざっくりだけど、
namespaceは現在居るディレクトリを示す
useは、require_onceに近い。
実際は違うけど
2013年12月22日日曜日
PHPのDIコンテナ
あまり意識したことがないので、勉強
以下が参考になる
http://qiita.com/lga0503/items/4fcf6dc52d993df5dbb2
http://phpmentors.jp/post/28548053449/pimple-di
http://blog.tojiru.net/article/304867046.html
以下が参考になる
http://qiita.com/lga0503/items/4fcf6dc52d993df5dbb2
http://phpmentors.jp/post/28548053449/pimple-di
http://blog.tojiru.net/article/304867046.html
2013年12月18日水曜日
Macのファイルパスを取得する方法
こんな方法が!知らなかった
http://inforati.jp/apple/mac-tips-techniques/application-hints/how-to-enter-file-or-folder-path-into-mac-terminal-app-easily.html
2013年12月17日火曜日
phpunit+selenium
基本はマニュアルを参考に進めてる
http://phpunit.de/manual/3.7/ja/selenium.html
で、実行時に以下で詰まる
Fatal error: Class 'PHPUnit_Extensions_SeleniumTestSuite' not found in /Users/indival/phpunit/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase.php on line 315
stack見てたら、composerで入れたのとpearで入れたのが、競合してる模様
なので、フルパスで
MAC-B-233:testclass indival$ /usr/local/opt/php54/bin/phpunit WebTest
PHPUnit 3.7.28 by Sebastian Bergmann.
F
Time: 50.68 seconds, Memory: 3.25Mb
There was 1 failure:
1) WebTest::testTitle
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Example WWW Page'
+'求人・転職サイト キュリア転職'
/Users/indival/brew_phpunit/testclass/WebTest.php:15
FAILURES!
Tests: 1, Assertions: 1, Failures: 1.
動いた
テストは失敗しないとおかしいケースにしたのでよし
目標はもっと先なのでどんどん試してみます
http://phpunit.de/manual/3.7/ja/selenium.html
で、実行時に以下で詰まる
Fatal error: Class 'PHPUnit_Extensions_SeleniumTestSuite' not found in /Users/indival/phpunit/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase.php on line 315
stack見てたら、composerで入れたのとpearで入れたのが、競合してる模様
なので、フルパスで
MAC-B-233:testclass indival$ /usr/local/opt/php54/bin/phpunit WebTest
PHPUnit 3.7.28 by Sebastian Bergmann.
F
Time: 50.68 seconds, Memory: 3.25Mb
There was 1 failure:
1) WebTest::testTitle
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Example WWW Page'
+'求人・転職サイト キュリア転職'
/Users/indival/brew_phpunit/testclass/WebTest.php:15
FAILURES!
Tests: 1, Assertions: 1, Failures: 1.
動いた
テストは失敗しないとおかしいケースにしたのでよし
目標はもっと先なのでどんどん試してみます
登録:
投稿 (Atom)