@@ -10,31 +10,43 @@ public function _before( AcceptanceTester $I ): void {
1010
1111 public function DeprecatedArgumentShouldBeHandled ( AcceptanceTester $ I ): void {
1212 $ I ->amOnAPageThatIsDoingItWrong ( 'argument ' );
13- $ I ->seeInQMPanel ( 'Doing it Wrong (1) ' , 'Function my_function was called with an argument that is deprecated since version 2.0.0 ' );
13+ $ I ->seeTableRowInQMPanel ( 'Doing it Wrong (1) ' , [
14+ 'Message ' => 'Function my_function was called with an argument that is deprecated since version 2.0.0 with no alternative available. ' ,
15+ ] );
1416 }
1517
1618 public function DeprecatedClassShouldBeHandled ( AcceptanceTester $ I ): void {
1719 $ I ->amOnAPageThatIsDoingItWrong ( 'class ' );
18- $ I ->seeInQMPanel ( 'Doing it Wrong (1) ' , 'My_Class is deprecated since version 2.0.0 ' );
20+ $ I ->seeTableRowInQMPanel ( 'Doing it Wrong (1) ' , [
21+ 'Message ' => 'Class My_Class is deprecated since version 2.0.0 with no alternative available. ' ,
22+ ] );
1923 }
2024
2125 public function DeprecatedConstructorShouldBeHandled ( AcceptanceTester $ I ): void {
2226 $ I ->amOnAPageThatIsDoingItWrong ( 'constructor ' );
23- $ I ->seeInQMPanel ( 'Doing it Wrong (1) ' , 'The called constructor method for My_Class class is deprecated since version 2.0.0 ' );
27+ $ I ->seeTableRowInQMPanel ( 'Doing it Wrong (1) ' , [
28+ 'Message ' => 'The called constructor method for My_Class class is deprecated since version 2.0.0! Use __construct() instead. ' ,
29+ ] );
2430 }
2531
2632 public function DeprecatedFileShouldBeHandled ( AcceptanceTester $ I ): void {
2733 $ I ->amOnAPageThatIsDoingItWrong ( 'file ' );
28- $ I ->seeInQMPanel ( 'Doing it Wrong (1) ' , 'my_file.php is deprecated since version 2.0.0 ' );
34+ $ I ->seeTableRowInQMPanel ( 'Doing it Wrong (1) ' , [
35+ 'Message ' => 'File my_file.php is deprecated since version 2.0.0 with no alternative available. ' ,
36+ ] );
2937 }
3038
3139 public function DeprecatedFunctionShouldBeHandled ( AcceptanceTester $ I ): void {
3240 $ I ->amOnAPageThatIsDoingItWrong ( 'function ' );
33- $ I ->seeInQMPanel ( 'Doing it Wrong (1) ' , 'my_function is deprecated since version 2.0.0 ' );
41+ $ I ->seeTableRowInQMPanel ( 'Doing it Wrong (1) ' , [
42+ 'Message ' => 'Function my_function is deprecated since version 2.0.0 with no alternative available. ' ,
43+ ] );
3444 }
3545
3646 public function DeprecatedHookShouldBeHandled ( AcceptanceTester $ I ): void {
3747 $ I ->amOnAPageThatIsDoingItWrong ( 'hook ' );
38- $ I ->seeInQMPanel ( 'Doing it Wrong (1) ' , 'my_hook is deprecated since version 2.0.0 ' );
48+ $ I ->seeTableRowInQMPanel ( 'Doing it Wrong (1) ' , [
49+ 'Message ' => 'Hook my_hook is deprecated since version 2.0.0 with no alternative available. ' ,
50+ ] );
3951 }
4052}
0 commit comments