Skip to content

Commit

Permalink
Reopen PR #228 (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
peter279k committed Mar 8, 2021
1 parent e459d5c commit ce4119b
Show file tree
Hide file tree
Showing 45 changed files with 46 additions and 45 deletions.
2 changes: 1 addition & 1 deletion tests/Functional/ButLastTest.php
Expand Up @@ -16,7 +16,7 @@

class ButLastTest extends AbstractTestCase
{
public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->list = [1, 2, 3, 4];
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/ConcatTest.php
Expand Up @@ -14,7 +14,7 @@

class ConcatTest extends AbstractTestCase
{
public function setUp(): void
protected function setUp(): void
{
parent::setUp();
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/DifferenceTest.php
Expand Up @@ -29,7 +29,7 @@ class DifferenceTest extends AbstractTestCase
/** @var Traversable|float[] */
private $floatIterator;

public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->intArray = [1 => 1, 2, "foo" => 3, 4];
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/DropTest.php
Expand Up @@ -18,7 +18,7 @@

class DropTest extends AbstractTestCase
{
public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->list = ['value1', 'value2', 'value3', 'value4'];
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/EachTest.php
Expand Up @@ -22,7 +22,7 @@ class EachTest extends AbstractTestCase
*/
private $cb;

public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->cb = $this->getMockBuilder('cb')
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/EveryTest.php
Expand Up @@ -30,7 +30,7 @@ class EveryTest extends AbstractTestCase
/** @var Traversable|string[] */
private $badIterator;

public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->goodArray = ['value', 'value', 'value'];
Expand Down
3 changes: 2 additions & 1 deletion tests/Functional/Exceptions/InvalidArgumentExceptionTest.php
Expand Up @@ -8,8 +8,9 @@
* @link https://github.com/lstrojny/functional-php
*/

namespace Functional\Exceptions;
namespace Functional\Tests\Exceptions;

use Functional\Exceptions\InvalidArgumentException;
use PHPUnit\Framework\TestCase;

class InvalidArgumentExceptionTest extends TestCase
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/FalseTest.php
Expand Up @@ -40,7 +40,7 @@ class FalseTest extends AbstractTestCase
/** @var Traversable */
private $falseHashIterator;

public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->trueArray = [false, false, false, false];
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/FalsyTest.php
Expand Up @@ -41,7 +41,7 @@ class FalsyTest extends AbstractTestCase
/** @var Traversable */
private $falseHashIterator;

public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->trueArray = [false, null, false, false, 0];
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/FirstTest.php
Expand Up @@ -30,7 +30,7 @@ public function getAliases(): array
];
}

public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->list = ['first', 'second', 'third'];
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/FlatMapTest.php
Expand Up @@ -17,7 +17,7 @@

class FlatMapTest extends AbstractTestCase
{
public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->list = ['a', ['b'], ['C' => 'c'], [['d']], null];
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/FlattenTest.php
Expand Up @@ -27,7 +27,7 @@ class FlattenTest extends AbstractTestCase
/** @var Traversable */
private $goodIterator;

public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->goodArray = [1, 2, 3, [4, 5, 6, [7, 8, 9]], 10, [11, [12, 13], 14], 15];
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/GroupTest.php
Expand Up @@ -17,7 +17,7 @@

class GroupTest extends AbstractTestCase
{
public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->list = ['value1', 'value2', 'value3', 'value4'];
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/InvokeFirstTest.php
Expand Up @@ -29,7 +29,7 @@ class InvokeFirstTest extends AbstractTestCase
/** @var Traversable */
private $iteratorVeryFirstNotCallable;

public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->list = [$this, null, null];
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/InvokeLastTest.php
Expand Up @@ -24,7 +24,7 @@ class InvokeLastTest extends AbstractTestCase

private $keyArray;

public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->list = [null, null, $this];
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/InvokeTest.php
Expand Up @@ -23,7 +23,7 @@ class InvokeTest extends AbstractTestCase
/** @var Traversable */
private $keyIterator;

public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->list = [$this, $this, $this];
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/LastTest.php
Expand Up @@ -24,7 +24,7 @@ class LastTest extends AbstractTestCase
/** @var Traversable|string[] */
private $badIterator;

public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->list = ['first', 'second', 'third', 'fourth'];
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/MapTest.php
Expand Up @@ -17,7 +17,7 @@

class MapTest extends AbstractTestCase
{
public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->list = ['value', 'value'];
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/MaximumTest.php
Expand Up @@ -17,7 +17,7 @@

class MaximumTest extends AbstractTestCase
{
public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->list = [1, "foo", 5.1, 5, "5.2", true, false, [], new stdClass()];
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/MemoizeTest.php
Expand Up @@ -42,7 +42,7 @@ public static function call(): string
return 'STATIC METHOD VALUE' . self::invoke(__METHOD__);
}

public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->callback = $this->getMockBuilder('stdClass')
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/MinimumTest.php
Expand Up @@ -17,7 +17,7 @@

class MinimumTest extends AbstractTestCase
{
public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->list = [1, "foo", 5.1, 5, "5.2", true, false, [], new stdClass()];
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/NoneTest.php
Expand Up @@ -29,7 +29,7 @@ class NoneTest extends AbstractTestCase
/** @var Traversable|string[] */
private $badIterator;

public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->goodArray = ['value', 'value', 'value'];
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/PartitionTest.php
Expand Up @@ -17,7 +17,7 @@

class PartitionTest extends AbstractTestCase
{
public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->list = ['value1', 'value2', 'value3'];
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/PickTest.php
Expand Up @@ -19,7 +19,7 @@ class PickTest extends AbstractTestCase
{
private $array_1;

public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->array_1 = [
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/PluckTest.php
Expand Up @@ -123,7 +123,7 @@ class PluckTest extends AbstractTestCase
/** @var Traversable */
private $getExceptionIterator;

public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->propertyExistsEverywhereArray = [(object)['property' => 1], (object)['property' => 2]];
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/PollTest.php
Expand Up @@ -25,7 +25,7 @@ class PollTest extends AbstractTestCase
/** @var MockObject */
private $poller;

public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->poller = $this->createMock(Poller::class);
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/ProductTest.php
Expand Up @@ -29,7 +29,7 @@ class ProductTest extends AbstractTestCase
/** @var Traversable|float[] */
private $floatIterator;

public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->intArray = [1 => 1, 2, "foo" => 3, 4];
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/RatioTest.php
Expand Up @@ -29,7 +29,7 @@ class RatioTest extends AbstractTestCase
/** @var Traversable|float[] */
private $floatIterator;

public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->intArray = [1 => 1, 2, "foo" => 3, 4];
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/ReduceTest.php
Expand Up @@ -20,7 +20,7 @@ class ReduceTest extends AbstractTestCase
/** @var iterable */
private $currentCollection;

public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->list = ['one', 'two', 'three'];
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/ReindexTest.php
Expand Up @@ -17,7 +17,7 @@

class ReindexTest extends AbstractTestCase
{
public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->list = ['value', 'value'];
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/RejectTest.php
Expand Up @@ -17,7 +17,7 @@

class RejectTest extends AbstractTestCase
{
public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->list = ['value', 'wrong', 'value'];
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/RepeatTest.php
Expand Up @@ -27,7 +27,7 @@ class RepeatTest extends AbstractTestCase
/** @var Repeated|MockObject */
private $repeated;

public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->repeated = $this->createMock(Repeated::class);
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/RetryTest.php
Expand Up @@ -26,7 +26,7 @@ class RetryTest extends AbstractTestCase
/** @var MockObject */
private $retryer;

public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->retryer = $this->createMock(Retryer::class);
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/SelectTest.php
Expand Up @@ -25,7 +25,7 @@ public function getAliases(): array
];
}

public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->list = ['value', 'wrong', 'value'];
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/SomeTest.php
Expand Up @@ -30,7 +30,7 @@ class SomeTest extends AbstractTestCase
/** @var Traversable|string[] */
private $badIterator;

public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->goodArray = ['value', 'wrong'];
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/SortTest.php
Expand Up @@ -19,7 +19,7 @@ class SortTest extends AbstractTestCase
/** @var callable */
private $sortCallback;

public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->list = ['cat', 'bear', 'aardvark'];
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/SumTest.php
Expand Up @@ -29,7 +29,7 @@ class SumTest extends AbstractTestCase
/** @var Traversable */
private $floatIterator;

public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->intArray = [1 => 1, 2, "foo" => 3];
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/TailTest.php
Expand Up @@ -24,7 +24,7 @@ class TailTest extends AbstractTestCase
/** @var Traversable */
private $badIterator;

public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->list = [1, 2, 3, 4];
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/TakeLeftTest.php
Expand Up @@ -17,7 +17,7 @@

class TakeLeftTest extends AbstractTestCase
{
public function setUp(): void
protected function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/TakeRightTest.php
Expand Up @@ -17,7 +17,7 @@

class TakeRightTest extends AbstractTestCase
{
public function setUp(): void
protected function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/TapTest.php
Expand Up @@ -14,7 +14,7 @@

class TapTest extends AbstractTestCase
{
public function setUp(): void
protected function setUp(): void
{
parent::setUp();
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/TrueTest.php
Expand Up @@ -40,7 +40,7 @@ class TrueTest extends AbstractTestCase
/** @var bool[] */
private $trueArray;

public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->trueArray = [true, true, true, true];
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/TruthyTest.php
Expand Up @@ -41,7 +41,7 @@ class TruthyTest extends AbstractTestCase
/** @var Traversable */
private $falseHashIterator;

public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->trueArray = [true, true, 'foo', true, true, 1];
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/UniqueTest.php
Expand Up @@ -23,7 +23,7 @@ class UniqueTest extends AbstractTestCase
/** @var Traversable */
private $mixedTypesIterator;

public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->list = ['value1', 'value2', 'value1', 'value'];
Expand Down

0 comments on commit ce4119b

Please sign in to comment.