~ancarda/high-test-coverage

a9aeed30b83638c34fb27d4a1337bc7fabf08ac4 — Mark Dain a month ago 9b7ef4c
Make DocBlocks more uniform
A src/DateTimeImmutable/.DateTimeImmutableFactory.php.swp => src/DateTimeImmutable/.DateTimeImmutableFactory.php.swp +0 -0
M src/DateTimeImmutable/Succession.php => src/DateTimeImmutable/Succession.php +1 -1
@@ 30,7 30,7 @@ final class Succession implements DateTimeImmutableFactory

    /**
     * @param array<int, DateTimeImmutable> $succession Non-Empty array
     * @throws LogicException If given an empty array of integers
     * @throws LogicException If given an empty array
     */
    public function __construct(array $succession)
    {

M src/RandomInt/Failure.php => src/RandomInt/Failure.php +1 -1
@@ 11,7 11,7 @@ use RuntimeException;
 *
 * This class always throws an exception when you request a random number. It's
 * intended to be used to test how your code behaves when randomness is not
 * currently available.
 * available.
 */
final class Failure implements RandomInt
{

M src/RandomInt/OneShot.php => src/RandomInt/OneShot.php +5 -4
@@ 7,10 7,11 @@ namespace Ancarda\HighTestCoverage\RandomInt;
/**
 * Generates a single random number forever
 *
 * OneShot generates a single real random number when randomInt is called,
 * then returns that number -- and always that number -- forever. This is
 * intended to be used when you need uniformity across a test run, but want
 * randomness between test runs.
 * OneShot generates a single real random number, then returns that -- and
 * always that -- forever.
 *
 * This is intended to be used when you need uniformity across a test run, but
 * can have or want randomness between test runs.
 */
final class OneShot implements RandomInt
{

M src/RandomInt/Succession.php => src/RandomInt/Succession.php +3 -3
@@ 10,7 10,7 @@ use LogicException;
 * Return the next item in a set of predetermined fixed values every time
 *
 * This implementation takes a list of integers in the constructor. Each time
 * a random integer is requested, the next number in the list is returned and
 * a random integer is requested, the next item in the list is returned and
 * the pointer is moved one place.
 *
 * When the list is exhausted, the pointer wraps around.


@@ 27,8 27,8 @@ final class Succession implements RandomInt
    private $last = 0;

    /**
     * @param array<int, int> $succession Non-Empty array of integers
     * @throws LogicException If given an empty array of integers
     * @param array<int, int> $succession Non-Empty array
     * @throws LogicException If given an empty array
     */
    public function __construct(array $succession)
    {