6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

FuelPHPのテストがコケる件

Last updated at Posted at 2014-07-09

追記(2014-07-14)

  • 1.7.2がリリースされ、本問題は修正されたようです。

いきなりテスト落ちてるんだが

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.

記録

まとめ

issuesにも上げられてるけど、「1.8でやってみ?」とか書いてあるし、まあ一言で言うとウケるとしか言いようがない。

6
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?