1 | <?php |
||
21 | class TextTest4CheckFalseVal extends \PHPUnit_Framework_TestCase |
||
22 | { |
||
23 | //------------------------------------------------------// |
||
24 | // テストメソッド定義 |
||
25 | //------------------------------------------------------// |
||
26 | /** |
||
27 | * setUp() |
||
28 | * |
||
29 | * テストに必要な準備を実施 |
||
30 | */ |
||
31 | protected function setUp() |
||
34 | |||
35 | /** |
||
36 | * test_CheckFalseVal_true1() |
||
37 | * |
||
38 | * checkFalseVal()の挙動をテストする(falseではない文字列、代替文字なし、厳密判定なし) |
||
39 | */ |
||
40 | public function test_CheckFalseVal_true1() |
||
47 | |||
48 | /** |
||
49 | * test_CheckFalseVal_true2() |
||
50 | * |
||
51 | * checkFalseVal()の挙動をテストする(falseではない文字列、代替文字あり、厳密判定なし) |
||
52 | */ |
||
53 | public function test_CheckFalseVal_true2() |
||
60 | |||
61 | /** |
||
62 | * test_CheckFalseVal_true3() |
||
63 | * |
||
64 | * checkFalseVal()の挙動をテストする(falseではない文字列、代替文字あり、厳密判定あり) |
||
65 | */ |
||
66 | public function test_CheckFalseVal_true3() |
||
73 | |||
74 | /** |
||
75 | * test_CheckFalseVal_False1() |
||
76 | * |
||
77 | * checkFalseVal()の挙動をテストする(falseな文字列、代替文字列なし、厳密判定なし) |
||
78 | */ |
||
79 | public function test_CheckFalseVal_False1() |
||
86 | |||
87 | /** |
||
88 | * test_CheckFalseVal_False2() |
||
89 | * |
||
90 | * checkFalseVal()の挙動をテストする(falseな文字列、代替文字列あり、厳密判定なし) |
||
91 | */ |
||
92 | public function test_CheckFalseVal_False2() |
||
99 | |||
100 | /** |
||
101 | * test_CheckFalseVal_False3() |
||
102 | * |
||
103 | * checkFalseVal()の挙動をテストする(falseな文字列、代替文字列なし、厳密判定あり) |
||
104 | */ |
||
105 | public function test_CheckFalseVal_False3() |
||
112 | |||
113 | /** |
||
114 | * test_CheckFalseVal_False4() |
||
115 | * |
||
116 | * checkFalseVal()の挙動をテストする(false、代替文字列なし、厳密判定あり) |
||
117 | */ |
||
118 | public function test_CheckFalseVal_False4() |
||
125 | } |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: