File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 77
88use MaplePHP \Blunder \Handlers \SilentHandler ;
99use MaplePHP \Blunder \Run ;
10- use MaplePHP \Unitary \Handlers \FileHandler ;
11- use MaplePHP \Unitary \Handlers \HtmlHandler ;
1210use MaplePHP \Unitary \Unit ;
1311
1412// If you add true to Unit it will run in quite mode
1513// and only report if it finds any errors!
1614
1715$ unit = new Unit ();
16+
1817$ unit ->case ("MaplePHP pretty error handler test " , function ($ inst ) {
1918
2019 // SilentHandler will hide the error that I have added in this file
2120 // and is using to test the Blunder library
2221 $ run = new Run (new SilentHandler ());
2322 $ run ->event (function ($ item , $ http ) use ($ inst ) {
2423
24+
2525 $ inst ->add ($ item ->getStatus (), function () {
2626 return $ this ->equal ("warning " );
2727
3131 "equal " => ["E_WARNING " ],
3232 ], "getSeverity is not a equal to E_WARNING " );
3333
34- $ inst ->add (" Test- " . $ item ->getLine (), [
34+ $ inst ->add ($ item ->getLine (), [
3535 "isInt " => [],
3636 "length " => [1 ],
3737 ], "getLine is not a int " );
You can’t perform that action at this time.
0 commit comments