File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 33namespace Javanile \Imap2 \Tests ;
44
55use Javanile \Imap2 \Connection ;
6+ use Javanile \Imap2 \Functions ;
67use Javanile \Imap2 \HeaderInfo ;
78use PHPUnit \Framework \Error \Warning ;
89
@@ -16,7 +17,7 @@ public function testSanitizeAddress()
1617 ];
1718
1819 foreach ($ inputs as $ input => $ output ) {
19- $ this ->assertEquals ($ output , HeaderInfo ::sanitizeAddress ($ input , 'localhost ' ));
20+ $ this ->assertEquals ($ output , Functions ::sanitizeAddress ($ input , 'localhost ' ));
2021 }
2122 }
2223}
Original file line number Diff line number Diff line change @@ -105,6 +105,9 @@ public function testInputOutputDeep()
105105 {
106106 $ inputs = json_decode (file_get_contents ('tests/fixtures/inputs.json ' ), true );
107107 foreach ($ this ->functions as $ function ) {
108+ if ($ function == 'errors ' ) {
109+ continue ;
110+ }
108111 $ parameters = $ inputs [$ function ] ?? array_map (
109112 function ($ parameter ) use ($ function ) { return $ parameter ->name ; },
110113 (new \ReflectionFunction ('imap2_ ' .$ function ))->getParameters ()
You can’t perform that action at this time.
0 commit comments