@@ 64-83 (lines=20) @@ | ||
61 | ] |
|
62 | ); |
|
63 | ||
64 | if ($expected === 0) { |
|
65 | $this->assertInternalType('integer', $actual, $message); |
|
66 | $this->assertEquals(0, $actual, $message); |
|
67 | } else { |
|
68 | if ($expected === null) { |
|
69 | $this->assertNull($actual, $message); |
|
70 | } else { |
|
71 | $major = $minor = 0; |
|
72 | ||
73 | if ($expected < 0) { |
|
74 | $minor = $actual; |
|
75 | } else { |
|
76 | $major = $actual; |
|
77 | } |
|
78 | ||
79 | $this->assertInternalType('integer', $actual, $message); |
|
80 | $this->assertGreaterThan($minor, $major, $message); |
|
81 | $this->assertLessThan($major, $minor, $message); |
|
82 | } |
|
83 | } |
|
84 | } |
|
85 | ||
86 | /** |
@@ 73-92 (lines=20) @@ | ||
70 | ] |
|
71 | ); |
|
72 | ||
73 | if ($expected === 0) { |
|
74 | $this->assertInternalType('integer', $actual, $message); |
|
75 | $this->assertEquals(0, $actual, $message); |
|
76 | } else { |
|
77 | if ($expected === null) { |
|
78 | $this->assertNull($actual, $message); |
|
79 | } else { |
|
80 | $major = $minor = 0; |
|
81 | ||
82 | if ($expected < 0) { |
|
83 | $minor = $actual; |
|
84 | } else { |
|
85 | $major = $actual; |
|
86 | } |
|
87 | ||
88 | $this->assertInternalType('integer', $actual, $message); |
|
89 | $this->assertGreaterThan($minor, $major, $message); |
|
90 | $this->assertLessThan($major, $minor, $message); |
|
91 | } |
|
92 | } |
|
93 | } |
|
94 | ||
95 |