Apply coding standards to tests, as well

This commit is contained in:
Ben Ramsey
2015-12-17 12:09:17 -06:00
parent a04e5d30a8
commit cdeed9e65a
2 changed files with 7 additions and 6 deletions
+6 -5
View File
@@ -825,11 +825,11 @@ class UuidTest extends TestCase
$mock = $this->getMock('Ramsey\Uuid\Generator\RandomGeneratorInterface');
$mock->expects($this->any())
->method('generate')
->willReturnCallback(function ($length)
{
->willReturnCallback(function ($length) {
// Makes first fields of UUIDs equal
return str_pad('', $length, '0');
});
return str_pad('', $length, '0');
});
$factory = new UuidFactory();
$generator = new CombGenerator($mock, $factory->getNumberConverter());
@@ -1273,7 +1273,8 @@ class UuidTest extends TestCase
$this->assertTrue(
$uuid32->equals($uuid64),
'Breaks at ' . gmdate('r', $currentTime) . "; 32-bit: {$uuid32->toString()}, 64-bit: {$uuid64->toString()}"
'Breaks at ' . gmdate('r', $currentTime)
. "; 32-bit: {$uuid32->toString()}, 64-bit: {$uuid64->toString()}"
);
// Assert that the time matches