Skip to content
This repository was archived by the owner on Mar 12, 2024. It is now read-only.

Commit 5b0dfbe

Browse files
committed
add test stub
1 parent b556619 commit 5b0dfbe

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

tests/Boilerplate/TestClass.php

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?php
2+
3+
namespace MichaelRubel\LoopFunctions\Tests\Boilerplate;
4+
5+
use Illuminate\Support\Collection;
6+
use MichaelRubel\LoopFunctions\Traits\LoopFunctions;
7+
8+
class TestClass
9+
{
10+
use LoopFunctions;
11+
12+
public bool $bool = false;
13+
public string $string = 'string';
14+
public ?string $nullable_string = 'string';
15+
public array $array = [];
16+
public ?array $nullable_array = [];
17+
18+
protected Collection $collection;
19+
protected ?Collection $nullable_collection = null;
20+
21+
private static array $static = [];
22+
private static ?array $nullable_static_array = null;
23+
24+
public function __construct()
25+
{
26+
$this->bool = true;
27+
$this->string = 'new string';
28+
$this->nullable_string = null;
29+
$this->array = ['array' => true];
30+
$this->nullable_array = null;
31+
$this->collection = new Collection;
32+
$this->nullable_collection = null;
33+
self::$static = ['static' => true];
34+
self::$nullable_static_array = null;
35+
}
36+
}

0 commit comments

Comments
 (0)