PageContext::iAmOnThePageWith()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 2
1
<?php
2
3
namespace Knp\FriendlyContexts\Context;
4
5
use Behat\Gherkin\Node\TableNode;
6
7
class PageContext extends RawPageContext
8
{
9
    /**
10
     * @Given /^I am on the (.*) page$/
11
     * @Given /^I am on the (.*) page with:?$/
12
     * @When /^I go to the (.*) page$/
13
     * @When /^I go to the (.*) page with:?$/
14
     */
15
    public function iAmOnThePageWith($page, TableNode $table = null)
16
    {
17
        $this->visitPage($page, $table);
18
    }
19
20
    /**
21
     * @Then /^I should be on the (.*) page$/
22
     * @Then /^I should be on the (.*) page with:?$/
23
     */
24
    public function iShouldBeOnThePageWith($page, TableNode $table = null)
25
    {
26
        $this->assertPage($page, $table);
27
    }
28
}
29