| Total Complexity | 5 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 5 | class RepositoryDeleteFeatureContext extends AbstractRepositoryFeatureContext |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @When /^I call method "(.*)" on repository with existing entities$/ |
||
| 9 | * |
||
| 10 | * @param string $method |
||
| 11 | */ |
||
| 12 | public function iCallMethodOnRepositoryWithExistingEntities(string $method) |
||
| 15 | } |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @When /^I call method "(.*)" on repository with existing entities and expecting exception:$/ |
||
| 19 | * |
||
| 20 | * @param string $method |
||
| 21 | */ |
||
| 22 | public function iCallMethodOnRepositoryWithExistingEntitiesAndExpectingException(string $method) |
||
| 23 | { |
||
| 24 | try { |
||
| 25 | $this->callMethodOnRepositoryWithExistingEntities($method); |
||
| 26 | } catch (\Exception $e) { |
||
| 27 | static::$exception = $e; |
||
| 28 | } |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param string $method |
||
| 33 | */ |
||
| 34 | private function callMethodOnRepositoryWithExistingEntities(string $method) |
||
| 44 | ] |
||
| 45 | ); |
||
| 49 |