File tree 1 file changed +8
-6
lines changed
src/Surfnet/Stepup/Tests/Configuration/Value
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -26,14 +26,14 @@ class LocationTest extends UnitTest
26
26
/**
27
27
* @test
28
28
* @group domain
29
- * @dataProvider nonStringOrEmptyStringProvider
29
+ * @dataProvider nonStringProvider
30
30
* @expectedException \Surfnet\Stepup\Exception\InvalidArgumentException
31
31
*
32
- * @param mixed $nonStringOrEmptyString
32
+ * @param mixed $nonString
33
33
*/
34
- public function it_cannot_be_created_with_anything_but_a_nonempty_string ( $ nonStringOrEmptyString )
34
+ public function it_cannot_be_created_with_anything_but_a_string ( $ nonString )
35
35
{
36
- new Location ($ nonStringOrEmptyString );
36
+ new Location ($ nonString );
37
37
}
38
38
39
39
/**
@@ -55,13 +55,15 @@ public function two_locations_with_the_same_value_are_equal()
55
55
/**
56
56
* dataprovider
57
57
*/
58
- public function nonStringOrEmptyStringProvider ()
58
+ public function nonStringProvider ()
59
59
{
60
60
return [
61
+ 'null ' => [null ],
62
+ 'boolean ' => [false ],
61
63
'array ' => [[]],
62
64
'integer ' => [1 ],
63
65
'float ' => [1.2 ],
64
- 'object ' => [new \StdClass ()],
66
+ 'object ' => [new \stdClass ()],
65
67
];
66
68
}
67
69
}
You can’t perform that action at this time.
0 commit comments