Skip to content

Commit

Permalink
Merge pull request #84 from jildertmiedema/patch-2
Browse files Browse the repository at this point in the history
functions are declared in the interface, should be public
  • Loading branch information
JeffreyWay committed May 21, 2015
2 parents 144f140 + 05465d5 commit 2ab96f0
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions src/Extensions/IntegrationTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ protected function assertSee($text, $message, $negate = false)
* @return static
* @throws PHPUnitException
*/
protected function see($text)
public function see($text)
{
return $this->assertSee($text, sprintf(
"Could not find '%s' on the page, '%s'.", $text, $this->currentPage
Expand All @@ -149,7 +149,7 @@ protected function see($text)
* @return static
* @throws PHPUnitException
*/
protected function notSee($text)
public function notSee($text)
{
return $this->assertSee($text, sprintf(
"Could not find '%s' on the page, '%s'.", $text, $this->currentPage
Expand All @@ -164,7 +164,7 @@ protected function notSee($text)
* @param boolean $negate
* @return static
*/
protected function assertPageIs($uri, $message, $negate = false)
public function assertPageIs($uri, $message, $negate = false)
{
$this->assertPageLoaded($uri = $this->prepareUrl($uri));

Expand All @@ -181,7 +181,7 @@ protected function assertPageIs($uri, $message, $negate = false)
* @param string $uri
* @return static
*/
protected function seePageIs($uri)
public function seePageIs($uri)
{
return $this->assertPageIs(
$uri, "Expected to be on the page, {$uri}, but wasn't."
Expand All @@ -194,7 +194,7 @@ protected function seePageIs($uri)
* @param string $uri
* @return static
*/
protected function notSeePageIs($uri)
public function notSeePageIs($uri)
{
return $this->assertPageIs(
$uri, "Expected to NOT be on the page, {$uri}, but was.", true
Expand All @@ -207,7 +207,7 @@ protected function notSeePageIs($uri)
* @param string $page
* @return static
*/
protected function onPage($page)
public function onPage($page)
{
return $this->seePageIs($page);
}
Expand All @@ -218,7 +218,7 @@ protected function onPage($page)
* @param string $name
* @return static
*/
protected function click($name)
public function click($name)
{
$link = $this->crawler->selectLink($name);

Expand Down Expand Up @@ -247,7 +247,7 @@ protected function click($name)
* @param string $text
* @return static
*/
protected function follow($text)
public function follow($text)
{
return $this->click($text);
}
Expand All @@ -259,7 +259,7 @@ protected function follow($text)
* @param string $element
* @return static
*/
protected function type($text, $element)
public function type($text, $element)
{
return $this->storeInput($element, $text);
}
Expand All @@ -271,7 +271,7 @@ protected function type($text, $element)
* @param string $element
* @return static
*/
protected function fill($text, $element)
public function fill($text, $element)
{
return $this->type($text, $element);
}
Expand All @@ -282,7 +282,7 @@ protected function fill($text, $element)
* @param string $element
* @return static
*/
protected function check($element)
public function check($element)
{
return $this->storeInput($element, true);
}
Expand All @@ -293,7 +293,7 @@ protected function check($element)
* @param string $element
* @return static
*/
protected function tick($element)
public function tick($element)
{
return $this->check($element);
}
Expand All @@ -305,7 +305,7 @@ protected function tick($element)
* @param string $option
* @return static
*/
protected function select($element, $option)
public function select($element, $option)
{
return $this->storeInput($element, $option);
}
Expand All @@ -317,7 +317,7 @@ protected function select($element, $option)
* @param string $absolutePath
* @return static
*/
protected function attachFile($element, $absolutePath)
public function attachFile($element, $absolutePath)
{
return $this->storeInput($element, $absolutePath);
}
Expand Down Expand Up @@ -346,7 +346,7 @@ protected function storeInput($name, $value)
* @param string $buttonText
* @return static
*/
protected function press($buttonText)
public function press($buttonText)
{
return $this->submitForm($buttonText, $this->inputs);
}
Expand All @@ -356,7 +356,7 @@ protected function press($buttonText)
*
* @return void
*/
protected function dump()
public function dump()
{
$this->logLatestContent();

Expand Down Expand Up @@ -469,7 +469,7 @@ protected function assertFilterProducedResults($filter)
* @param string $path
* @return static
*/
protected function seeFile($path)
public function seeFile($path)
{
$this->assertFileExists($path);

Expand All @@ -482,7 +482,7 @@ protected function seeFile($path)
* @param string $path
* @return static
*/
protected function notSeeFile($path)
public function notSeeFile($path)
{
$this->assertFileNotExists($path);

Expand All @@ -498,7 +498,7 @@ protected function notSeeFile($path)
* @param boolean $negate
* @return static
*/
protected function assertInDatabase($table, array $data, $message, $negate = false)
public function assertInDatabase($table, array $data, $message, $negate = false)
{
$count = $this->seeRowsWereReturned($table, $data);
$method = $negate ? 'assertEquals' : 'assertGreaterThan';
Expand All @@ -515,7 +515,7 @@ protected function assertInDatabase($table, array $data, $message, $negate = fal
* @param array $data
* @return static
*/
protected function seeInDatabase($table, array $data)
public function seeInDatabase($table, array $data)
{
return $this->assertInDatabase($table, $data, sprintf(
"Didn't see row in the '%s' table that matched the attributes '%s'.",
Expand All @@ -530,7 +530,7 @@ protected function seeInDatabase($table, array $data)
* @param array $data
* @return static
*/
protected function notSeeInDatabase($table, array $data)
public function notSeeInDatabase($table, array $data)
{
return $this->assertInDatabase($table, $data, sprintf(
"Found row(s) in the '%s' table that matched the attributes '%s', but did not expect to.",
Expand All @@ -545,7 +545,7 @@ protected function notSeeInDatabase($table, array $data)
* @param array $data
* @return static
*/
protected function verifyInDatabase($table, array $data)
public function verifyInDatabase($table, array $data)
{
return $this->seeInDatabase($table, $data);
}
Expand All @@ -557,7 +557,7 @@ protected function verifyInDatabase($table, array $data)
* @param array $data
* @return static
*/
protected function notVerifyInDatabase($table, array $data)
public function notVerifyInDatabase($table, array $data)
{
return $this->notSeeInDatabase($table, $data);
}
Expand Down

0 comments on commit 2ab96f0

Please sign in to comment.