File tree Expand file tree Collapse file tree 4 files changed +105
-92
lines changed Expand file tree Collapse file tree 4 files changed +105
-92
lines changed Original file line number Diff line number Diff line change 30
30
*/
31
31
class BooleanTest extends TestCase
32
32
{
33
- public function testTrue ()
33
+ public function testTrue (): void
34
34
{
35
35
$ boolean = new Boolean (true );
36
36
37
37
$ this ->assertSame ("true " , $ boolean ->toQuery ());
38
+ $ this ->assertTrue ($ boolean ->getValue ());
38
39
}
39
40
40
- public function testFalse ()
41
+ public function testFalse (): void
41
42
{
42
43
$ boolean = new Boolean (false );
43
44
44
45
$ this ->assertSame ("false " , $ boolean ->toQuery ());
46
+ $ this ->assertFalse ($ boolean ->getValue ());
45
47
}
46
48
47
- public function testInstanceOfBooleanType ()
49
+ public function testInstanceOfBooleanType (): void
48
50
{
49
51
$ this ->assertInstanceOf (BooleanType::class, new Boolean (false ));
50
52
}
Original file line number Diff line number Diff line change 30
30
*/
31
31
class DecimalTest extends TestCase
32
32
{
33
- public function testZero ()
33
+ public function testZero (): void
34
34
{
35
35
$ decimal = new Decimal (0 );
36
36
37
37
$ this ->assertSame ("0 " , $ decimal ->toQuery ());
38
+ $ this ->assertEquals ('0 ' , $ decimal ->getValue ());
38
39
}
39
40
40
- public function testInstanceOfNumeralType ()
41
+ public function testInstanceOfNumeralType (): void
41
42
{
42
43
$ this ->assertInstanceOf (NumeralType::class, new Decimal (0 ));
43
44
}
@@ -47,11 +48,12 @@ public function testInstanceOfNumeralType()
47
48
* @param $number
48
49
* @param string $expected
49
50
*/
50
- public function testToQuery ($ number , string $ expected )
51
+ public function testToQuery ($ number , string $ expected ): void
51
52
{
52
53
$ decimal = new Decimal ($ number );
53
54
54
55
$ this ->assertSame ($ expected , $ decimal ->toQuery ());
56
+ $ this ->assertEquals ($ expected , $ decimal ->getValue ());
55
57
}
56
58
57
59
public function provideToQueryData (): array
You can’t perform that action at this time.
0 commit comments