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
+1 -1
View File
@@ -32,7 +32,7 @@ commands[1]="php --version"
commands[2]="cd ${TRAVIS_BUILD_DIR}"
commands[3]="composer install --no-interaction --prefer-dist"
commands[4]="./vendor/bin/parallel-lint src tests"
commands[5]="./vendor/bin/phpcs src --standard=psr2 -sp"
commands[5]="./vendor/bin/phpcs src tests --standard=psr2 -sp"
commands[6]="./vendor/bin/phpunit --verbose"
printf -v command "%s && " "${commands[@]}"