@@ -25,43 +25,43 @@ public function testConnectionGetID(): void
2525 {
2626 $ this ->execute (function (): void {
2727 $ this ->setUpConnection ();
28- $ this ->assertEquals ( null , $ this ->connectionObject ->getID ());
28+ $ this ->assertSame ( '' , $ this ->connectionObject ->getID ());
2929
3030 $ this ->connectionObject ->setID ('test ' );
3131
32- $ this ->assertEquals ('test ' , $ this ->connectionObject ->getID ());
32+ $ this ->assertSame ('test ' , $ this ->connectionObject ->getID ());
3333 });
3434 }
3535
3636 public function testConnectionSetID (): void
3737 {
3838 $ this ->execute (function (): void {
3939 $ this ->setUpConnection ();
40- $ this ->assertEquals ( null , $ this ->connectionObject ->getID ());
40+ $ this ->assertSame ( '' , $ this ->connectionObject ->getID ());
4141
4242 $ this ->assertInstanceOf (Connection::class, $ this ->connectionObject ->setID ('test ' ));
4343
44- $ this ->assertEquals ('test ' , $ this ->connectionObject ->getID ());
44+ $ this ->assertSame ('test ' , $ this ->connectionObject ->getID ());
4545 });
4646 }
4747
4848 public function testConnectionGetResource (): void
4949 {
5050 $ this ->execute (function (): void {
5151 $ this ->setUpConnection ();
52- $ this ->assertEquals ('x ' , $ this ->connectionObject ->getResource ());
52+ $ this ->assertSame ('x ' , $ this ->connectionObject ->getResource ());
5353 });
5454 }
5555
5656 public function testConnectionSetResource (): void
5757 {
5858 $ this ->execute (function (): void {
5959 $ this ->setUpConnection ();
60- $ this ->assertEquals ('x ' , $ this ->connectionObject ->getResource ());
60+ $ this ->assertSame ('x ' , $ this ->connectionObject ->getResource ());
6161
6262 $ this ->assertInstanceOf (Connection::class, $ this ->connectionObject ->setResource ('y ' ));
6363
64- $ this ->assertEquals ('y ' , $ this ->connectionObject ->getResource ());
64+ $ this ->assertSame ('y ' , $ this ->connectionObject ->getResource ());
6565 });
6666 }
6767
@@ -92,7 +92,7 @@ public function testConnectionGetPool(): void
9292 }
9393
9494 $ this ->assertInstanceOf (Pool::class, $ pool );
95- $ this ->assertEquals ('test ' , $ pool ->getName ());
95+ $ this ->assertSame ('test ' , $ pool ->getName ());
9696 });
9797 }
9898
@@ -101,23 +101,23 @@ public function testConnectionReclaim(): void
101101 $ this ->execute (function (): void {
102102 $ pool = new Pool ($ this ->getAdapter (), 'test ' , 2 , fn () => 'x ' );
103103
104- $ this ->assertEquals (2 , $ pool ->count ());
104+ $ this ->assertSame (2 , $ pool ->count ());
105105
106106 $ connection1 = $ pool ->pop ();
107107
108- $ this ->assertEquals (1 , $ pool ->count ());
108+ $ this ->assertSame (1 , $ pool ->count ());
109109
110110 $ connection2 = $ pool ->pop ();
111111
112- $ this ->assertEquals (0 , $ pool ->count ());
112+ $ this ->assertSame (0 , $ pool ->count ());
113113
114114 $ this ->assertInstanceOf (Pool::class, $ connection1 ->reclaim ());
115115
116- $ this ->assertEquals (1 , $ pool ->count ());
116+ $ this ->assertSame (1 , $ pool ->count ());
117117
118118 $ this ->assertInstanceOf (Pool::class, $ connection2 ->reclaim ());
119119
120- $ this ->assertEquals (2 , $ pool ->count ());
120+ $ this ->assertSame (2 , $ pool ->count ());
121121 });
122122 }
123123
@@ -139,28 +139,28 @@ public function testConnectionDestroy(): void
139139 return $ i <= 2 ? 'x ' : 'y ' ;
140140 });
141141
142- $ this ->assertEquals (2 , $ object ->count ());
142+ $ this ->assertSame (2 , $ object ->count ());
143143
144144 $ connection1 = $ object ->pop ();
145145 $ connection2 = $ object ->pop ();
146146
147- $ this ->assertEquals (0 , $ object ->count ());
147+ $ this ->assertSame (0 , $ object ->count ());
148148
149- $ this ->assertEquals ('x ' , $ connection1 ->getResource ());
150- $ this ->assertEquals ('x ' , $ connection2 ->getResource ());
149+ $ this ->assertSame ('x ' , $ connection1 ->getResource ());
150+ $ this ->assertSame ('x ' , $ connection2 ->getResource ());
151151
152152 $ connection1 ->destroy ();
153153 $ connection2 ->destroy ();
154154
155- $ this ->assertEquals (2 , $ object ->count ());
155+ $ this ->assertSame (2 , $ object ->count ());
156156
157157 $ connection1 = $ object ->pop ();
158158 $ connection2 = $ object ->pop ();
159159
160- $ this ->assertEquals (0 , $ object ->count ());
160+ $ this ->assertSame (0 , $ object ->count ());
161161
162- $ this ->assertEquals ('y ' , $ connection1 ->getResource ());
163- $ this ->assertEquals ('y ' , $ connection2 ->getResource ());
162+ $ this ->assertSame ('y ' , $ connection1 ->getResource ());
163+ $ this ->assertSame ('y ' , $ connection2 ->getResource ());
164164 });
165165 }
166166}
0 commit comments