1 | <?php |
||
26 | class FeatureContext implements Context |
||
27 | { |
||
28 | /** |
||
29 | * @var FixtureService |
||
30 | */ |
||
31 | private $fixtureService; |
||
32 | |||
33 | private $whitelistedInstitutions = []; |
||
34 | |||
35 | /** |
||
36 | * @var MinkContext |
||
37 | */ |
||
38 | private $minkContext; |
||
39 | |||
40 | /** |
||
41 | * @var array |
||
42 | */ |
||
43 | private $currentToken; |
||
44 | |||
45 | public function __construct(FixtureService $fixtureService) |
||
49 | |||
50 | /** |
||
51 | * @BeforeFeature |
||
52 | */ |
||
53 | public static function setupDatabase(BeforeFeatureScope $scope) |
||
60 | |||
61 | /** |
||
62 | * @BeforeScenario |
||
63 | */ |
||
64 | public function gatherContexts(BeforeScenarioScope $scope) |
||
69 | |||
70 | /** |
||
71 | * @Given /^a user from ([^"]*) identified by ([^"]*) with a vetted ([^"]*) token$/ |
||
72 | */ |
||
73 | public function aUserIdentifiedByWithAVettedToken($institution, $nameId, $tokenType) |
||
87 | |||
88 | /** |
||
89 | * @Then I should see the Yubikey OTP screen |
||
90 | */ |
||
91 | public function iShouldSeeTheYubikeyOtpScreen() |
||
96 | |||
97 | /** |
||
98 | * @Then I should see the SMS verification screen |
||
99 | */ |
||
100 | public function iShouldSeeTheSMSScreen() |
||
108 | |||
109 | /** |
||
110 | * @Given /^I should see the Tiqr authentication screen$/ |
||
111 | */ |
||
112 | public function iShouldSeeTheTiqrAuthenticationScreen() |
||
118 | |||
119 | /** |
||
120 | * @When I enter the OTP |
||
121 | */ |
||
122 | public function iEnterTheOtp() |
||
128 | |||
129 | /** |
||
130 | * @When I enter the SMS verification code |
||
131 | */ |
||
132 | public function iEnterTheSmsVerificationCode() |
||
138 | |||
139 | |||
140 | /** |
||
141 | * @When I finish the Tiqr authentication |
||
142 | */ |
||
143 | public function iFinishGsspAuthentication() |
||
149 | |||
150 | |||
151 | |||
152 | /** |
||
153 | * @Given /^a whitelisted institution ([^"]*)$/ |
||
154 | */ |
||
155 | public function aWhitelistedInstitution($institution) |
||
159 | |||
160 | /** |
||
161 | * @Then /^I select my ([^"]*) token on the WAYG$/ |
||
162 | */ |
||
163 | public function iShouldSelectMyTokenOnTheWAYG($tokenType) |
||
177 | |||
178 | /** |
||
179 | * @Then /^I should be on the WAYG$/ |
||
180 | */ |
||
181 | public function iShouldBeOnTheWAYG() |
||
185 | } |
||
186 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.