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) |
||
84 | |||
85 | /** |
||
86 | * @Then I should see the Yubikey OTP screen |
||
87 | */ |
||
88 | public function iShouldSeeTheYubikeyOtpScreen() |
||
93 | |||
94 | /** |
||
95 | * @Then I should see the SMS verification screen |
||
96 | */ |
||
97 | public function iShouldSeeTheSMSScreen() |
||
105 | |||
106 | /** |
||
107 | * @When I enter the OTP |
||
108 | */ |
||
109 | public function iEnterTheOtp() |
||
115 | |||
116 | /** |
||
117 | * @When I enter the SMS verification code |
||
118 | */ |
||
119 | public function iEnterTheSmsVerificationCode() |
||
125 | |||
126 | /** |
||
127 | * @Given /^a whitelisted institution ([^"]*)$/ |
||
128 | */ |
||
129 | public function aWhitelistedInstitution($institution) |
||
133 | |||
134 | /** |
||
135 | * @Then /^I select my ([^"]*) token on the WAYG$/ |
||
136 | */ |
||
137 | public function iShouldSelectMyTokenOnTheWAYG($tokenType) |
||
148 | |||
149 | /** |
||
150 | * @Then /^I should be on the WAYG$/ |
||
151 | */ |
||
152 | public function iShouldBeOnTheWAYG() |
||
156 | } |
||
157 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.