@@ -16,31 +16,31 @@ public function testAdd()
1616 $ expectedValue = '12 ' ;
1717
1818 $ bcEngine = $ this ->createClassObject ();
19- $ this ->assertEquals ($ expectedValue , $ bcEngine ->add ('5 ' , '7 ' ));
19+ $ this ->assertSame ($ expectedValue , $ bcEngine ->add ('5 ' , '7 ' ));
2020 }
2121
2222 public function testInput ()
2323 {
2424 $ expectedValue = '5 ' ;
2525
2626 $ bcEngine = $ this ->createClassObject ();
27- $ this ->assertEquals ($ expectedValue , $ bcEngine ->input ($ expectedValue ));
27+ $ this ->assertSame ($ expectedValue , $ bcEngine ->input ($ expectedValue ));
2828 }
2929
3030 public function testInputNull ()
3131 {
3232 $ expectedValue = '0 ' ;
3333
3434 $ bcEngine = $ this ->createClassObject ();
35- $ this ->assertEquals ($ expectedValue , $ bcEngine ->input (null ));
35+ $ this ->assertSame ($ expectedValue , $ bcEngine ->input (null ));
3636 }
3737
3838 public function testInputHex ()
3939 {
4040 $ expectedValue = '86 ' ;
4141
4242 $ bcEngine = $ this ->createClassObject ();
43- $ this ->assertEquals ($ expectedValue , $ bcEngine ->input ('0x56 ' ));
43+ $ this ->assertSame ($ expectedValue , $ bcEngine ->input ('0x56 ' ));
4444 }
4545
4646 public function testInputException ()
@@ -53,122 +53,122 @@ public function testInputException()
5353
5454 public function testCmpGreaterThan ()
5555 {
56- $ expectedValue = ' 1 ' ;
56+ $ expectedValue = 1 ;
5757
5858 $ bcEngine = $ this ->createClassObject ();
59- $ this ->assertEquals ($ expectedValue , $ bcEngine ->cmp ('9 ' , '7 ' ));
59+ $ this ->assertSame ($ expectedValue , $ bcEngine ->cmp ('9 ' , '7 ' ));
6060 }
6161
6262 public function testCmpLessThan ()
6363 {
64- $ expectedValue = ' -1 ' ;
64+ $ expectedValue = - 1 ;
6565
6666 $ bcEngine = $ this ->createClassObject ();
67- $ this ->assertEquals ($ expectedValue , $ bcEngine ->cmp ('7 ' , '9 ' ));
67+ $ this ->assertSame ($ expectedValue , $ bcEngine ->cmp ('7 ' , '9 ' ));
6868 }
6969
7070 public function testCmpEqualsTo ()
7171 {
72- $ expectedValue = ' 0 ' ;
72+ $ expectedValue = 0 ;
7373
7474 $ bcEngine = $ this ->createClassObject ();
75- $ this ->assertEquals ($ expectedValue , $ bcEngine ->cmp ('7 ' , '7 ' ));
75+ $ this ->assertSame ($ expectedValue , $ bcEngine ->cmp ('7 ' , '7 ' ));
7676 }
7777
7878 public function testDiv ()
7979 {
8080 $ expectedValue = '3 ' ;
8181
8282 $ bcEngine = $ this ->createClassObject ();
83- $ this ->assertEquals ($ expectedValue , $ bcEngine ->div ('6 ' , '2 ' ));
83+ $ this ->assertSame ($ expectedValue , $ bcEngine ->div ('6 ' , '2 ' ));
8484 }
8585
8686 public function testInvertm ()
8787 {
8888 $ expectedValue = '0 ' ;
8989
9090 $ bcEngine = $ this ->createClassObject ();
91- $ this ->assertEquals ($ expectedValue , $ bcEngine ->invertm ('6 ' , '2 ' ));
91+ $ this ->assertSame ($ expectedValue , $ bcEngine ->invertm ('6 ' , '2 ' ));
9292 }
9393
9494 public function testInvertm2 ()
9595 {
9696 $ expectedValue = '1 ' ;
9797
9898 $ bcEngine = $ this ->createClassObject ();
99- $ this ->assertEquals ($ expectedValue , $ bcEngine ->invertm ('-1 ' , '2 ' ));
99+ $ this ->assertSame ($ expectedValue , $ bcEngine ->invertm ('-1 ' , '2 ' ));
100100 }
101101
102102 public function testMod ()
103103 {
104104 $ expectedValue = '0 ' ;
105105
106106 $ bcEngine = $ this ->createClassObject ();
107- $ this ->assertEquals ($ expectedValue , $ bcEngine ->mod ('6 ' , '2 ' ));
107+ $ this ->assertSame ($ expectedValue , $ bcEngine ->mod ('6 ' , '2 ' ));
108108 }
109109
110110 public function testMod2 ()
111111 {
112112 $ expectedValue = '2 ' ;
113113
114114 $ bcEngine = $ this ->createClassObject ();
115- $ this ->assertEquals ($ expectedValue , $ bcEngine ->mod ('-6 ' , '2 ' ));
115+ $ this ->assertSame ($ expectedValue , $ bcEngine ->mod ('-6 ' , '2 ' ));
116116 }
117117
118118 public function testMul ()
119119 {
120120 $ expectedValue = '21 ' ;
121121
122122 $ bcEngine = $ this ->createClassObject ();
123- $ this ->assertEquals ($ expectedValue , $ bcEngine ->mul ('3 ' , '7 ' ));
123+ $ this ->assertSame ($ expectedValue , $ bcEngine ->mul ('3 ' , '7 ' ));
124124 }
125125
126126 public function testPow ()
127127 {
128128 $ expectedValue = '64 ' ;
129129
130130 $ bcEngine = $ this ->createClassObject ();
131- $ this ->assertEquals ($ expectedValue , $ bcEngine ->pow ('4 ' , '3 ' ));
131+ $ this ->assertSame ($ expectedValue , $ bcEngine ->pow ('4 ' , '3 ' ));
132132 }
133133
134134 public function testSub ()
135135 {
136136 $ expectedValue = '18 ' ;
137137
138138 $ bcEngine = $ this ->createClassObject ();
139- $ this ->assertEquals ($ expectedValue , $ bcEngine ->sub ('20 ' , '2 ' ));
139+ $ this ->assertSame ($ expectedValue , $ bcEngine ->sub ('20 ' , '2 ' ));
140140 }
141141
142142 public function testCoprime ()
143143 {
144144 $ expectedValue = false ;
145145
146146 $ bcEngine = $ this ->createClassObject ();
147- $ this ->assertEquals ($ expectedValue , $ bcEngine ->coprime ('20 ' , '2 ' ));
147+ $ this ->assertSame ($ expectedValue , $ bcEngine ->coprime ('20 ' , '2 ' ));
148148 }
149149
150150 public function testCoprime2 ()
151151 {
152152 $ expectedValue = true ;
153153
154154 $ bcEngine = $ this ->createClassObject ();
155- $ this ->assertEquals ($ expectedValue , $ bcEngine ->coprime ('5 ' , '3 ' ));
155+ $ this ->assertSame ($ expectedValue , $ bcEngine ->coprime ('5 ' , '3 ' ));
156156 }
157157
158158 public function testCoprime3 ()
159159 {
160160 $ expectedValue = true ;
161161
162162 $ bcEngine = $ this ->createClassObject ();
163- $ this ->assertEquals ($ expectedValue , $ bcEngine ->coprime ('3 ' , '5 ' ));
163+ $ this ->assertSame ($ expectedValue , $ bcEngine ->coprime ('3 ' , '5 ' ));
164164 }
165165
166166 public function testCoprime4 ()
167167 {
168168 $ expectedValue = false ;
169169
170170 $ bcEngine = $ this ->createClassObject ();
171- $ this ->assertEquals ($ expectedValue , $ bcEngine ->coprime ('3 ' , '3 ' ));
171+ $ this ->assertSame ($ expectedValue , $ bcEngine ->coprime ('3 ' , '3 ' ));
172172 }
173173
174174 private function createClassObject ()
0 commit comments