public function checkUserAccessToPages($not, TableNode $paths)
    {
        $code = empty($not) ? 200 : 403;
        $fails = [];

        foreach (array_keys($paths->getRowsHash()) as $path) {
            if (!$this->assertStatusCode($path, $code)) {
                $fails[] = $path;
            }
        }

        if (!empty($fails)) {
            throw new \Exception(sprintf(
                'The following paths: "%s" are %s accessible!',
                implode(', ', $fails),
                $not ? '' : 'not'
            ));
        }
    }
public function checkUserAccessToPages($not, TableNode $paths)
    {
        $code = empty($not) ? 200 : 403;
        $fails = [];

        foreach (array_keys($paths->getRowsHash()) as $path) {
            if (!$this->assertStatusCode($path, $code)) {
                $fails[] = $path;
            }
        }

        if (!empty($fails)) {
            throw new \Exception(sprintf(
                'The following paths: "%s" are %s accessible!',
                implode(', ', $fails),
                $not ? '' : 'not'
            ));
        }
    }
@example
Given user should have an access to the following pages
| page/url |

@param string $not
@param TableNode $paths

@throws \Exception

@Given /^user should(| not) have an access to the following pages:$/