Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds void return type to generated snippets #1463

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
50 changes: 25 additions & 25 deletions features/append_snippets.feature
Original file line number Diff line number Diff line change
Expand Up @@ -185,39 +185,39 @@ Feature: Append snippets option
/**
* @Then /^do something undefined with \$$/
*/
public function doSomethingUndefinedWith2()
public function doSomethingUndefinedWith2(): void
{
throw new PendingException();
}

/**
* @Then /^do something undefined with \\(\d+)$/
*/
public function doSomethingUndefinedWith3($arg1)
public function doSomethingUndefinedWith3($arg1): void
{
throw new PendingException();
}

/**
* @Given /^pystring:$/
*/
public function pystring(PyStringNode $string)
public function pystring(PyStringNode $string): void
{
throw new PendingException();
}

/**
* @Given /^pystring (\d+):$/
*/
public function pystring2($arg1, PyStringNode $string)
public function pystring2($arg1, PyStringNode $string): void
{
throw new PendingException();
}

/**
* @Given /^table:$/
*/
public function table(TableNode $table)
public function table(TableNode $table): void
{
throw new PendingException();
}
Expand Down Expand Up @@ -355,39 +355,39 @@ Feature: Append snippets option
/**
* @Then /^do something undefined with \$$/
*/
public function doSomethingUndefinedWith2()
public function doSomethingUndefinedWith2(): void
{
throw new PendingException();
}

/**
* @Then /^do something undefined with \\(\d+)$/
*/
public function doSomethingUndefinedWith3($arg1)
public function doSomethingUndefinedWith3($arg1): void
{
throw new PendingException();
}

/**
* @Given /^pystring:$/
*/
public function pystring(PyStringNode $string)
public function pystring(PyStringNode $string): void
{
throw new PendingException();
}

/**
* @Given /^pystring (\d+):$/
*/
public function pystring2($arg1, PyStringNode $string)
public function pystring2($arg1, PyStringNode $string): void
{
throw new PendingException();
}

/**
* @Given /^table:$/
*/
public function table(TableNode $table)
public function table(TableNode $table): void
{
throw new PendingException();
}
Expand Down Expand Up @@ -523,39 +523,39 @@ Feature: Append snippets option
/**
* @Then /^do something undefined with \$$/
*/
public function doSomethingUndefinedWith2()
public function doSomethingUndefinedWith2(): void
{
throw new PendingException();
}

/**
* @Then /^do something undefined with \\(\d+)$/
*/
public function doSomethingUndefinedWith3($arg1)
public function doSomethingUndefinedWith3($arg1): void
{
throw new PendingException();
}

/**
* @Given /^pystring:$/
*/
public function pystring(PyStringNode $string)
public function pystring(PyStringNode $string): void
{
throw new PendingException();
}

/**
* @Given /^pystring (\d+):$/
*/
public function pystring2($arg1, PyStringNode $string)
public function pystring2($arg1, PyStringNode $string): void
{
throw new PendingException();
}

/**
* @Given /^table:$/
*/
public function table(TableNode $table)
public function table(TableNode $table): void
{
throw new PendingException();
}
Expand Down Expand Up @@ -652,79 +652,79 @@ Feature: Append snippets option
/**
* @Given /^I have (\d+) apples$/
*/
public function iHaveApples($arg1)
public function iHaveApples($arg1): void
{
throw new PendingException();
}

/**
* @When /^I ate (\d+) apple$/
*/
public function iAteApple($arg1)
public function iAteApple($arg1): void
{
throw new PendingException();
}

/**
* @Then /^I should have (\d+) apples$/
*/
public function iShouldHaveApples($arg1)
public function iShouldHaveApples($arg1): void
{
throw new PendingException();
}

/**
* @When /^I found (\d+) apples$/
*/
public function iFoundApples($arg1)
public function iFoundApples($arg1): void
{
throw new PendingException();
}

/**
* @Then /^do something undefined with \$$/
*/
public function doSomethingUndefinedWith()
public function doSomethingUndefinedWith(): void
{
throw new PendingException();
}

/**
* @When /^I ate (\d+) apples$/
*/
public function iAteApples($arg1)
public function iAteApples($arg1): void
{
throw new PendingException();
}

/**
* @Then /^do something undefined with \\(\d+)$/
*/
public function doSomethingUndefinedWith2($arg1)
public function doSomethingUndefinedWith2($arg1): void
{
throw new PendingException();
}

/**
* @Given /^pystring:$/
*/
public function pystring(PyStringNode $string)
public function pystring(PyStringNode $string): void
{
throw new PendingException();
}

/**
* @Given /^pystring (\d+):$/
*/
public function pystring2($arg1, PyStringNode $string)
public function pystring2($arg1, PyStringNode $string): void
{
throw new PendingException();
}

/**
* @Given /^table:$/
*/
public function table(TableNode $table)
public function table(TableNode $table): void
{
throw new PendingException();
}
Expand Down
4 changes: 2 additions & 2 deletions features/context.feature
Original file line number Diff line number Diff line change
Expand Up @@ -275,15 +275,15 @@ Feature: Context consistency
/**
* @Then /^context parameter "([^"]*)" should be equal to "([^"]*)"$/
*/
public function contextParameterShouldBeEqualTo($arg1, $arg2)
public function contextParameterShouldBeEqualTo($arg1, $arg2): void
{
throw new PendingException();
}

/**
* @Then /^context parameter "([^"]*)" should be array with (\d+) elements$/
*/
public function contextParameterShouldBeArrayWithElements($arg1, $arg2)
public function contextParameterShouldBeArrayWithElements($arg1, $arg2): void
{
throw new PendingException();
}
Expand Down
24 changes: 12 additions & 12 deletions features/format_options.feature
Original file line number Diff line number Diff line change
Expand Up @@ -171,23 +171,23 @@ Feature: Format options
/**
* @Then /^do something undefined$/
*/
public function doSomethingUndefined()
public function doSomethingUndefined(): void
{
throw new PendingException();
}

/**
* @Given /^pystring:$/
*/
public function pystring(PyStringNode $string)
public function pystring(PyStringNode $string): void
{
throw new PendingException();
}

/**
* @Given /^table:$/
*/
public function table(TableNode $table)
public function table(TableNode $table): void
{
throw new PendingException();
}
Expand Down Expand Up @@ -254,23 +254,23 @@ Feature: Format options
/**
* @Then /^do something undefined$/
*/
public function doSomethingUndefined()
public function doSomethingUndefined(): void
{
throw new PendingException();
}

/**
* @Given /^pystring:$/
*/
public function pystring(PyStringNode $string)
public function pystring(PyStringNode $string): void
{
throw new PendingException();
}

/**
* @Given /^table:$/
*/
public function table(TableNode $table)
public function table(TableNode $table): void
{
throw new PendingException();
}
Expand Down Expand Up @@ -402,23 +402,23 @@ Feature: Format options
/**
* @Then /^do something undefined$/
*/
public function doSomethingUndefined()
public function doSomethingUndefined(): void
{
throw new PendingException();
}

/**
* @Given /^pystring:$/
*/
public function pystring(PyStringNode $string)
public function pystring(PyStringNode $string): void
{
throw new PendingException();
}

/**
* @Given /^table:$/
*/
public function table(TableNode $table)
public function table(TableNode $table): void
{
throw new PendingException();
}
Expand Down Expand Up @@ -482,23 +482,23 @@ Feature: Format options
/**
* @Then /^do something undefined$/
*/
public function doSomethingUndefined()
public function doSomethingUndefined(): void
{
throw new PendingException();
}

/**
* @Given /^pystring:$/
*/
public function pystring(PyStringNode $string)
public function pystring(PyStringNode $string): void
{
throw new PendingException();
}

/**
* @Given /^table:$/
*/
public function table(TableNode $table)
public function table(TableNode $table): void
{
throw new PendingException();
}
Expand Down
8 changes: 4 additions & 4 deletions features/i18n.feature
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ Feature: I18n
/**
* @Then /^Добавить "([^"]*)" число$/
*/
public function dobavitChislo($arg1)
public function dobavitChislo($arg1): void
{
throw new PendingException();
}
Expand Down Expand Up @@ -180,7 +180,7 @@ Feature: I18n
/**
* @Then /^Добавить "([^"]*)" число$/
*/
public function dobavitChislo($arg1)
public function dobavitChislo($arg1): void
{
throw new PendingException();
}
Expand Down Expand Up @@ -220,7 +220,7 @@ Feature: I18n
/**
* @Then /^Добавить "([^"]*)" число$/
*/
public function dobavitChislo($arg1)
public function dobavitChislo($arg1): void
{
throw new PendingException();
}
Expand Down Expand Up @@ -260,7 +260,7 @@ Feature: I18n
/**
* @Then /^Добавить "([^"]*)" число$/
*/
public function dobavitChislo($arg1)
public function dobavitChislo($arg1): void
{
throw new PendingException();
}
Expand Down
2 changes: 1 addition & 1 deletion features/junit_format.feature
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
/**
* @Then /^Something new$/
*/
public function somethingNew()
public function somethingNew(): void
{
throw new PendingException();
}
Expand Down