PageContext   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 2
eloc 3
c 3
b 0
f 0
dl 0
loc 20
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A iAmOnThePageWith() 0 3 1
A iShouldBeOnThePageWith() 0 3 1
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