11<?php
2+ /** @noinspection PhpPossiblePolymorphicInvocationInspection */
3+
4+ /** @noinspection PhpUnhandledExceptionInspection */
25
36declare (strict_types=1 );
47
@@ -39,8 +42,8 @@ public function shouldGetDeleteEvent(): void
3942 /** @var DeleteRowsDTO $event */
4043 $ event = $ this ->getEvent ();
4144 self ::assertInstanceOf (DeleteRowsDTO::class, $ event );
42- self ::assertEquals ($ event ->getValues ()[0 ]['id ' ], 1 );
43- self ::assertEquals ($ event ->getValues ()[0 ]['data ' ], ' Hello World ' );
45+ self ::assertEquals (1 , $ event ->getValues ()[0 ]['id ' ]);
46+ self ::assertEquals (' Hello World ' , $ event ->getValues ()[0 ]['data ' ]);
4447 }
4548
4649 /**
@@ -62,10 +65,10 @@ public function shouldGetUpdateEvent(): void
6265 /** @var UpdateRowsDTO $event */
6366 $ event = $ this ->getEvent ();
6467 self ::assertInstanceOf (UpdateRowsDTO::class, $ event );
65- self ::assertEquals ($ event ->getValues ()[0 ]['before ' ]['id ' ], 1 );
66- self ::assertEquals ($ event ->getValues ()[0 ]['before ' ]['data ' ], ' Hello ' );
67- self ::assertEquals ($ event ->getValues ()[0 ]['after ' ]['id ' ], 2 );
68- self ::assertEquals ($ event ->getValues ()[0 ]['after ' ]['data ' ], ' World ' );
68+ self ::assertEquals (1 , $ event ->getValues ()[0 ]['before ' ]['id ' ]);
69+ self ::assertEquals (' Hello ' , $ event ->getValues ()[0 ]['before ' ]['data ' ]);
70+ self ::assertEquals (2 , $ event ->getValues ()[0 ]['after ' ]['id ' ]);
71+ self ::assertEquals (' World ' , $ event ->getValues ()[0 ]['after ' ]['data ' ]);
6972 }
7073
7174 /**
@@ -240,7 +243,7 @@ public function shouldTruncateTable(): void
240243 public function shouldJsonSetPartialUpdateWithHoles (): void
241244 {
242245 if ($ this ->checkForVersion (5.7 ) || BinLogServerInfo::isMariaDb ()) {
243- $ this -> markTestIncomplete ('Only for mysql 5.7 or higher ' );
246+ self :: markTestIncomplete ('Only for mysql 5.7 or higher ' );
244247 }
245248
246249 $ expected = '{"age":22,"addr":{"code":100,"detail":{"ab":"970785C8 - C299"}},"name":"Alice"} ' ;
@@ -250,7 +253,7 @@ public function shouldJsonSetPartialUpdateWithHoles(): void
250253
251254 $ this ->createAndInsertValue ($ create_query , $ insert_query );
252255
253- $ this ->connection ->executeStatementuteStatement ('UPDATE t1 SET j = JSON_SET(j, \'$.addr.detail.ab \', \'970785C8 \') ' );
256+ $ this ->connection ->executeQuery ('UPDATE t1 SET j = JSON_SET(j, \'$.addr.detail.ab \', \'970785C8 \') ' );
254257
255258 self ::assertInstanceOf (XidDTO::class, $ this ->getEvent ());
256259 self ::assertInstanceOf (QueryDTO::class, $ this ->getEvent ());
@@ -276,7 +279,7 @@ public function shouldJsonSetPartialUpdateWithHoles(): void
276279 public function shouldJsonRemovePartialUpdateWithHoles (): void
277280 {
278281 if ($ this ->checkForVersion (5.7 ) || BinLogServerInfo::isMariaDb ()) {
279- $ this -> markTestIncomplete ('Only for mysql 5.7 or higher ' );
282+ self :: markTestIncomplete ('Only for mysql 5.7 or higher ' );
280283 }
281284
282285 $ expected = '{"age":22,"addr":{"code":100,"detail":{"ab":"970785C8-C299"}},"name":"Alice"} ' ;
@@ -312,7 +315,7 @@ public function shouldJsonRemovePartialUpdateWithHoles(): void
312315 public function shouldJsonReplacePartialUpdateWithHoles (): void
313316 {
314317 if ($ this ->checkForVersion (5.7 ) || BinLogServerInfo::isMariaDb ()) {
315- $ this -> markTestIncomplete ('Only for mysql 5.7 or higher ' );
318+ self :: markTestIncomplete ('Only for mysql 5.7 or higher ' );
316319 }
317320
318321 $ expected = '{"age":22,"addr":{"code":100,"detail":{"ab":"970785C8-C299"}},"name":"Alice"} ' ;
0 commit comments