Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit ca0f167

Browse files
committed
Use short array syntax
1 parent 25a80bc commit ca0f167

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

test/UuidTest.php

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,15 @@ public function testInvalidUuid($uuid, $expectedMessageKey)
6666
*/
6767
public function validUuidProvider()
6868
{
69-
return array(
70-
array('00000000-0000-0000-0000-000000000000'),
71-
array('ff6f8cb0-c57d-11e1-9b21-0800200c9a66'),
72-
array('ff6f8cb0-c57d-21e1-9b21-0800200c9a66'),
73-
array('ff6f8cb0-c57d-31e1-9b21-0800200c9a66'),
74-
array('ff6f8cb0-c57d-41e1-9b21-0800200c9a66'),
75-
array('ff6f8cb0-c57d-51e1-9b21-0800200c9a66'),
76-
array('FF6F8CB0-C57D-11E1-9B21-0800200C9A66'),
77-
);
69+
return [
70+
['00000000-0000-0000-0000-000000000000'],
71+
['ff6f8cb0-c57d-11e1-9b21-0800200c9a66'],
72+
['ff6f8cb0-c57d-21e1-9b21-0800200c9a66'],
73+
['ff6f8cb0-c57d-31e1-9b21-0800200c9a66'],
74+
['ff6f8cb0-c57d-41e1-9b21-0800200c9a66'],
75+
['ff6f8cb0-c57d-51e1-9b21-0800200c9a66'],
76+
['FF6F8CB0-C57D-11E1-9B21-0800200C9A66'],
77+
];
7878
}
7979

8080
/**
@@ -84,16 +84,16 @@ public function validUuidProvider()
8484
*/
8585
public function invalidUuidProvider()
8686
{
87-
return array(
88-
array('zf6f8cb0-c57d-11e1-9b21-0800200c9a66', Uuid::INVALID),
89-
array('af6f8cb0c57d11e19b210800200c9a66', Uuid::INVALID),
90-
array('ff6f8cb0-c57da-51e1-9b21-0800200c9a66', Uuid::INVALID),
91-
array('af6f8cb-c57d-11e1-9b21-0800200c9a66', Uuid::INVALID),
92-
array('3f6f8cb0-c57d-11e1-9b21-0800200c9a6', Uuid::INVALID),
93-
array('3f6f8cb0', Uuid::INVALID),
94-
array('', Uuid::INVALID),
95-
array(123, Uuid::NOT_STRING),
96-
array(new \stdClass(), Uuid::NOT_STRING),
97-
);
87+
return [
88+
['zf6f8cb0-c57d-11e1-9b21-0800200c9a66', Uuid::INVALID],
89+
['af6f8cb0c57d11e19b210800200c9a66', Uuid::INVALID],
90+
['ff6f8cb0-c57da-51e1-9b21-0800200c9a66', Uuid::INVALID],
91+
['af6f8cb-c57d-11e1-9b21-0800200c9a66', Uuid::INVALID],
92+
['3f6f8cb0-c57d-11e1-9b21-0800200c9a6', Uuid::INVALID],
93+
['3f6f8cb0', Uuid::INVALID],
94+
['', Uuid::INVALID],
95+
[123, Uuid::NOT_STRING],
96+
[new \stdClass(), Uuid::NOT_STRING],
97+
];
9898
}
9999
}

0 commit comments

Comments
 (0)