bug #25072 [Bridge/PhpUnit] Remove trailing "\n" from ClockMock::microtime(false) (joky)

This PR was merged into the 2.8 branch.

Discussion
----------

[Bridge/PhpUnit] Remove trailing "\n" from ClockMock::microtime(false)

| Q             | A
| ------------- | ---
| Branch?       | 2.8
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #25050
| License       | MIT
| Doc PR        | -

Commits
-------

5ddb121 [Bridge/PhpUnit] Remove trailing "\n" from ClockMock::microtime(false)
This commit is contained in:
Nicolas Grekas 2017-11-21 10:22:33 +01:00
commit 7be944a787

View File

@ -66,7 +66,7 @@ class ClockMock
return self::$now;
}
return sprintf("%0.6f %d\n", self::$now - (int) self::$now, (int) self::$now);
return sprintf('%0.6f %d', self::$now - (int) self::$now, (int) self::$now);
}
public static function register($class)