File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed
dev/tests/unit/testsuite/Magento/Framework/Test/Utility Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -44,21 +44,20 @@ public function testReadListsWrongPattern()
44
44
$ this ->assertSame ([], Files::init ()->readLists (__DIR__ . '/_files/no_good.txt ' ));
45
45
}
46
46
47
- /**
48
- * @expectedException \Exception
49
- * @expectedExceptionMessage The glob() pattern 'bar/unknown' didn't return any result.
50
- */
51
47
public function testReadListsCorruptedDir ()
52
48
{
53
- Files::init ()->readLists (__DIR__ . '/_files/list_corrupted_dir.txt ' );
49
+ $ result = Files::init ()->readLists (__DIR__ . '/_files/list_corrupted_dir.txt ' );
50
+
51
+ foreach ($ result as $ path ) {
52
+ $ this ->assertNotContains ('bar/unknown ' , $ path );
53
+ }
54
54
}
55
55
56
- /**
57
- * @expectedException \Exception
58
- * @expectedExceptionMessage The glob() pattern 'unknown.txt' didn't return any result.
59
- */
60
56
public function testReadListsCorruptedFile ()
61
57
{
62
- Files::init ()->readLists (__DIR__ . '/_files/list_corrupted_file.txt ' );
63
- }
58
+ $ result = Files::init ()->readLists (__DIR__ . '/_files/list_corrupted_file.txt ' );
59
+
60
+ foreach ($ result as $ path ) {
61
+ $ this ->assertNotContains ('unknown.txt ' , $ path );
62
+ } }
64
63
}
You can’t perform that action at this time.
0 commit comments