Fuelのテストがコケる件
いきなりテスト落ちてるんだが
FuelPHPを使ってみようと公式に書いてある通りにダウンロードしてコードを生成し、まずはテストを走らせてみようと思ったらこんな感じ。
$ php oil test Tests Running...This may take a few moments. PHPUnit 3.7.29 by Sebastian Bergmann. Configuration read from /home/fuelSample/fuel/core/phpunit.xml FFFFFFFF.....FFFF.F.F.....F.................................... 63 / 361 ( 17%) ............................................................... 126 / 361 ( 34%) ............................................................... 189 / 361 ( 52%) ..............................................F................ 252 / 361 ( 69%) ............................................................... 315 / 361 ( 87%) .............................................. Time: 6.89 minutes, Memory: 18.00Mb There were 16 failures: 1) Fuel\Core\Test_Agent::test_browser Failed asserting that two strings are equal. --- Expected +++ Actual @@ @@ -'Firefox' +'unknown' /home/fuelSample/fuel/core/tests/agent.php:47 2) Fuel\Core\Test_Agent::test_platform Failed asserting that two strings are equal. --- Expected +++ Actual @@ @@ -'Linux' +'unknown' /home/fuelSample/fuel/core/tests/agent.php:59 3) Fuel\Core\Test_Agent::test_version Failed asserting that 0 is of type "float". /home/fuelSample/fuel/core/tests/agent.php:71 4) Fuel\Core\Test_Agent::test_property with data set #0 ('Browser', 'Firefox') Failed asserting that two strings are equal. --- Expected +++ Actual @@ @@ -'Firefox' +'unknown' /home/fuelSample/fuel/core/tests/agent.php:165 5) Fuel\Core\Test_Agent::test_property with data set #1 ('Version', 3.6) Failed asserting that 0 matches expected 3.6. /home/fuelSample/fuel/core/tests/agent.php:165 6) Fuel\Core\Test_Agent::test_property with data set #2 ('MajorVer', 3) Failed asserting that 0 matches expected 3. /home/fuelSample/fuel/core/tests/agent.php:165 7) Fuel\Core\Test_Agent::test_property with data set #3 ('MinorVer', 6) Failed asserting that 0 matches expected 6. /home/fuelSample/fuel/core/tests/agent.php:165 8) Fuel\Core\Test_Agent::test_property with data set #4 ('Platform', 'Linux') Failed asserting that two strings are equal. --- Expected +++ Actual @@ @@ -'Linux' +'unknown' /home/fuelSample/fuel/core/tests/agent.php:165 9) Fuel\Core\Test_Agent::test_property with data set #10 ('Frames', true) Failed asserting that false matches expected true. /home/fuelSample/fuel/core/tests/agent.php:165 10) Fuel\Core\Test_Agent::test_property with data set #11 ('IFrames', true) Failed asserting that false matches expected true. /home/fuelSample/fuel/core/tests/agent.php:165 11) Fuel\Core\Test_Agent::test_property with data set #12 ('Tables', true) Failed asserting that false matches expected true. /home/fuelSample/fuel/core/tests/agent.php:165 12) Fuel\Core\Test_Agent::test_property with data set #13 ('Cookies', true) Failed asserting that false matches expected true. /home/fuelSample/fuel/core/tests/agent.php:165 13) Fuel\Core\Test_Agent::test_property with data set #15 ('JavaScript', true) Failed asserting that false matches expected true. /home/fuelSample/fuel/core/tests/agent.php:165 14) Fuel\Core\Test_Agent::test_property with data set #17 ('JavaApplets', true) Failed asserting that false matches expected true. /home/fuelSample/fuel/core/tests/agent.php:165 15) Fuel\Core\Test_Agent::test_property with data set #23 ('CssVersion', 3) Failed asserting that 0 matches expected 3. /home/fuelSample/fuel/core/tests/agent.php:165 16) Fuel\Core\Test_Model_Crud::test_get_connection Failed asserting that null matches expected 'read'. /home/fuelSample/fuel/core/tests/model/crud.php:35 FAILURES! Tests: 361, Assertions: 411, Failures: 16.
記録
- fuelのバージョンは1.7.1です
- これからFuel使うぞって方は、1.8入れましょう
- Agentクラスが機能しかないと記載があった。まとめwiki作成者の方々に感謝しかない
- 関係ないけど素の状態でテスト実行7分近くかかるんですね
- 私の打ったコマンド(なんと3行)
$ curl get.fuelphp.com/oil | sh
$ oil create fuelSample
$ php oil test
- 上がってたissue
- https://github.com/fuel/core/issues/1671
まとめ
issuesにも上げられてるけど、「1.8でやってみ?」とか書いてあるし、まあ一言で言うとウケるとしか言いようがない。