File tree
3 files changed
+73
-3
lines changed- src/Symfony/Component/Finder
- Iterator
- Tests
- Iterator
3 files changed
+73
-3
lines changedLines changed: 5 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
33 |
| - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
34 | 38 |
| |
35 | 39 |
| |
36 | 40 |
| |
|
Lines changed: 20 additions & 0 deletions
@@ -411,4 +411,24 @@ public function getContainsTestData()
411
411
);
412
412
}
413
413
414
+ public function testContainsOnDirectory()
415
+ {
416
+ $finder = new Finder();
417
+ $finder->in(__DIR__)
418
+ ->directories()
419
+ ->name('Fixtures')
420
+ ->contains('abc');
421
+ $this->assertIterator(array(), $finder);
422
+ }
423
+
424
+ public function testNotContainsOnDirectory()
425
+ {
426
+ $finder = new Finder();
427
+ $finder->in(__DIR__)
428
+ ->directories()
429
+ ->name('Fixtures')
430
+ ->notContains('abc');
431
+ $this->assertIterator(array(), $finder);
432
+ }
433
+
414
434
}
Lines changed: 48 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 |
| - | |
23 | 22 |
| |
24 |
| - | |
25 | 23 |
| |
26 | 24 |
| |
27 | 25 |
| |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
28 | 50 |
| |
29 | 51 |
| |
30 | 52 |
| |
| |||
38 | 60 |
| |
39 | 61 |
| |
40 | 62 |
| |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
41 | 87 |
|
0 commit comments