mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-14 15:56:48 +03:00
Apply coding standards to tests, as well
This commit is contained in:
@@ -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
@@ -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[@]}"
|
||||
|
||||
Reference in New Issue
Block a user