| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 52 | public function locateSpecifications(Suite $suite, $locator) |
||
| 53 | { |
||
| 54 | if (!$suite instanceof SymfonyBundleSuite) { |
||
| 55 | return new noSpecificationsIterator($suite); |
||
| 56 | } |
||
| 57 | |||
| 58 | $bundle = $suite->getBundle(); |
||
| 59 | |||
| 60 | if (0 !== strpos($locator, '@' . $bundle->getName())) { |
||
| 61 | return new NoSpecificationsIterator($suite); |
||
| 62 | } |
||
| 63 | |||
| 64 | $locatorSuffix = substr($locator, strlen($bundle->getName()) + 1); |
||
| 65 | |||
| 66 | return $this->baseLocator->locateSpecifications($suite, $bundle->getPath() . '/Features' . $locatorSuffix); |
||
| 67 | } |
||
| 68 | } |
||
| 69 |