diff --git a/tests/src/UuidTest.php b/tests/src/UuidTest.php index 729f148..1898889 100644 --- a/tests/src/UuidTest.php +++ b/tests/src/UuidTest.php @@ -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 diff --git a/util/run-tests.sh b/util/run-tests.sh index 0834509..c63054c 100755 --- a/util/run-tests.sh +++ b/util/run-tests.sh @@ -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[@]}"