@@ -14,19 +14,19 @@ function it_is_initializable()
1414
1515 function it_should_return_valid_for_floats ()
1616 {
17- $ this ->check (0.0 )->isValid ()->shouldBe (true );
18- $ this ->check (1.1 )->isValid ()->shouldBe (true );
19- $ this ->check (2.0 )->isValid ()->shouldBe (true );
20- $ this ->check (-144.2 )->isValid ()->shouldBe (true );
17+ $ this ->check ('' , 0.0 )->isValid ()->shouldBe (true );
18+ $ this ->check ('' , 1.1 )->isValid ()->shouldBe (true );
19+ $ this ->check ('' , 2.0 )->isValid ()->shouldBe (true );
20+ $ this ->check ('' , -144.2 )->isValid ()->shouldBe (true );
2121 }
2222
2323 function it_should_return_invalid_for_others ()
2424 {
25- $ this ->check (null )->isValid ()->shouldBe (false );
26- $ this ->check ("foo " )->isValid ()->shouldBe (false );
27- $ this ->check ([])->isValid ()->shouldBe (false );
28- $ this ->check (1 )->isValid ()->shouldBe (false );
29- $ this ->check (true )->isValid ()->shouldBe (false );
30- $ this ->check (false )->isValid ()->shouldBe (false );
25+ $ this ->check ('' , null )->isValid ()->shouldBe (false );
26+ $ this ->check ('' , "foo " )->isValid ()->shouldBe (false );
27+ $ this ->check ('' , [])->isValid ()->shouldBe (false );
28+ $ this ->check ('' , 1 )->isValid ()->shouldBe (false );
29+ $ this ->check ('' , true )->isValid ()->shouldBe (false );
30+ $ this ->check ('' , false )->isValid ()->shouldBe (false );
3131 }
3232}
0 commit comments