Skip to content

Fix brackets by psr standart #79

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

Merged
merged 1 commit into from
Oct 27, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions tests/EnumTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ public function testCreatingEnumWithInvalidValue($value)
* Contains values not existing in EnumFixture
* @return array
*/
public function invalidValueProvider() {
public function invalidValueProvider()
{
return array(
"string" => array('test'),
"int" => array(1234),
Expand All @@ -68,7 +69,8 @@ public function testToString($expected, $enumObject)
$this->assertSame($expected, (string) $enumObject);
}

public function toStringProvider() {
public function toStringProvider()
{
return array(
array(EnumFixture::FOO, new EnumFixture(EnumFixture::FOO)),
array(EnumFixture::BAR, new EnumFixture(EnumFixture::BAR)),
Expand Down Expand Up @@ -162,7 +164,8 @@ public function testIsValid($value, $isValid)
$this->assertSame($isValid, EnumFixture::isValid($value));
}

public function isValidProvider() {
public function isValidProvider()
{
return array(
/**
* Valid values
Expand All @@ -177,7 +180,7 @@ public function isValidProvider() {
* Invalid values
*/
array('baz', false)
);
);
}

/**
Expand All @@ -199,7 +202,8 @@ public function testSearch($value, $expected)
$this->assertSame($expected, EnumFixture::search($value));
}

public function searchProvider() {
public function searchProvider()
{
return array(
array('foo', 'FOO'),
array(0, 'PROBLEMATIC_NUMBER'),
Expand Down