File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -792,7 +792,7 @@ protected function finalizeAddToDebug(
792
792
) : void {
793
793
$ end = \microtime (true );
794
794
$ rows = $ this ->mysqli ->affected_rows ;
795
- $ rows = $ rows < 0 ? $ rows . ' (failed) ' : $ rows ;
795
+ $ rows = $ rows < 0 ? ' error ' : $ rows ;
796
796
$ this ->debugCollector ->addData ([
797
797
'start ' => $ start ,
798
798
'end ' => $ end ,
Original file line number Diff line number Diff line change @@ -130,6 +130,12 @@ public function testFinalizeAddToDebug() : void
130
130
$ data = $ this ->collector ->getData ();
131
131
$ data = $ data [\array_key_last ($ data )];
132
132
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
+ );
134
140
}
135
141
}
You can’t perform that action at this time.
0 commit comments