1 | <?php |
||
27 | class FeatureContext implements Context |
||
28 | { |
||
29 | /** |
||
30 | * @var FixtureService |
||
31 | */ |
||
32 | private $fixtureService; |
||
33 | |||
34 | private $whitelistedInstitutions = []; |
||
35 | |||
36 | /** |
||
37 | * @var MinkContext |
||
38 | */ |
||
39 | private $minkContext; |
||
40 | |||
41 | /** |
||
42 | * @var array |
||
43 | */ |
||
44 | private $currentToken; |
||
45 | |||
46 | public function __construct(FixtureService $fixtureService) |
||
50 | |||
51 | /** |
||
52 | * @BeforeFeature |
||
53 | */ |
||
54 | public static function setupDatabase(BeforeFeatureScope $scope) |
||
61 | |||
62 | /** |
||
63 | * @BeforeScenario |
||
64 | */ |
||
65 | public function gatherContexts(BeforeScenarioScope $scope) |
||
70 | |||
71 | /** |
||
72 | * @Given /^a user from "([^"]*)" identified by "([^"]*)" with a vetted "([^"]*)" token$/ |
||
73 | */ |
||
74 | public function aUserIdentifiedByWithAVettedToken($institution, $nameId, $tokenType) |
||
85 | |||
86 | /** |
||
87 | * @Then I should see the Yubikey OTP screen |
||
88 | */ |
||
89 | public function iShouldSeeTheYubikeyOtpScreen() |
||
94 | |||
95 | /** |
||
96 | * @Then I should see the SMS verification screen |
||
97 | */ |
||
98 | public function iShouldSeeTheSMSScreen() |
||
106 | |||
107 | /** |
||
108 | * @When I enter the OTP |
||
109 | */ |
||
110 | public function iEnterTheOtp() |
||
118 | |||
119 | /** |
||
120 | * @When I enter the SMS verification code |
||
121 | */ |
||
122 | public function iEnterTheSmsVerificationCode() |
||
130 | |||
131 | /** |
||
132 | * @Given /^a whitelisted institution ([^"]*)$/ |
||
133 | */ |
||
134 | public function aWhitelistedInstitution($institution) |
||
138 | |||
139 | /** |
||
140 | * @Then /^I select my ([^"]*) token on the WAYG$/ |
||
141 | */ |
||
142 | public function iShouldSelectMyTokenOnTheWAYG($tokenType) |
||
153 | |||
154 | /** |
||
155 | * @Then /^I should be on the WAYG$/ |
||
156 | */ |
||
157 | public function iShouldBeOnTheWAYG() |
||
161 | |||
162 | /** |
||
163 | * @Then /^an error response is posted back to the SP$/ |
||
164 | */ |
||
165 | public function anErrorResponseIsPostedBackToTheSP() |
||
169 | |||
170 | /** |
||
171 | * @Given /^I cancel the authentication$/ |
||
172 | */ |
||
173 | public function iCancelTheAuthentication() |
||
177 | } |
||
178 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.