File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -792,7 +792,7 @@ protected function finalizeAddToDebug(
792792 ) : void {
793793 $ end = \microtime (true );
794794 $ rows = $ this ->mysqli ->affected_rows ;
795- $ rows = $ rows < 0 ? $ rows . ' (failed) ' : $ rows ;
795+ $ rows = $ rows < 0 ? ' error ' : $ rows ;
796796 $ this ->debugCollector ->addData ([
797797 'start ' => $ start ,
798798 'end ' => $ end ,
Original file line number Diff line number Diff line change @@ -130,6 +130,12 @@ public function testFinalizeAddToDebug() : void
130130 $ data = $ this ->collector ->getData ();
131131 $ data = $ data [\array_key_last ($ data )];
132132 self ::assertSame ('Foo Bar ' , $ data ['statement ' ]);
133- self ::assertSame ('-1 (failed) ' , $ data ['rows ' ]);
133+ self ::assertSame ('error ' , $ data ['rows ' ]);
134+ $ contents = $ this ->collector ->getContents ();
135+ self ::assertStringContainsString ('error ' , $ contents );
136+ self ::assertStringContainsString (
137+ \htmlentities ($ data ['description ' ]),
138+ $ contents
139+ );
134140 }
135141}
You can’t perform that action at this time.
0 commit comments