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() |
||
95 | |||
96 | /** |
||
97 | * @Then I should see the SMS verification screen |
||
98 | */ |
||
99 | public function iShouldSeeTheSMSScreen() |
||
107 | |||
108 | /** |
||
109 | * @When I enter the OTP |
||
110 | */ |
||
111 | public function iEnterTheOtp() |
||
119 | |||
120 | /** |
||
121 | * @When I enter the SMS verification code |
||
122 | */ |
||
123 | public function iEnterTheSmsVerificationCode() |
||
131 | |||
132 | /** |
||
133 | * @Given /^a whitelisted institution ([^"]*)$/ |
||
134 | */ |
||
135 | public function aWhitelistedInstitution($institution) |
||
139 | |||
140 | /** |
||
141 | * @Then /^I select my ([^"]*) token on the WAYG$/ |
||
142 | */ |
||
143 | public function iShouldSelectMyTokenOnTheWAYG($tokenType) |
||
154 | |||
155 | /** |
||
156 | * @Then /^I should be on the WAYG$/ |
||
157 | */ |
||
158 | public function iShouldBeOnTheWAYG() |
||
162 | |||
163 | /** |
||
164 | * @Then /^an error response is posted back to the SP$/ |
||
165 | */ |
||
166 | public function anErrorResponseIsPostedBackToTheSP() |
||
170 | |||
171 | /** |
||
172 | * @Given /^I cancel the authentication$/ |
||
173 | */ |
||
174 | public function iCancelTheAuthentication() |
||
178 | } |
||
179 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.