Skip to content

Commit

Permalink
One more fix for array() instead of []
Browse files Browse the repository at this point in the history
  • Loading branch information
mirfilip committed Feb 8, 2015
1 parent 749458c commit dae119a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/EnumTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ public function testCreatingEnumWithInvalidValue($value)
* @return array
*/
public function invalidValueProvider() {
return [
return array(
"string" => array('test'),
"int" => array(1234),
];
);
}

/**
Expand All @@ -72,11 +72,11 @@ public function testToString($expected, $enumObject)
}

public function toStringProvider() {
return [
return array(
array(EnumFixture::FOO, new EnumFixture(EnumFixture::FOO)),
array(EnumFixture::BAR, new EnumFixture(EnumFixture::BAR)),
array((string) EnumFixture::NUMBER, new EnumFixture(EnumFixture::NUMBER)),
];
);
}

/**
Expand Down Expand Up @@ -147,7 +147,7 @@ public function testIsValid($value, $isValid)
}

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

/**
Expand Down

0 comments on commit dae119a

Please sign in to comment.