CollectionTest.php
17 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Illuminate\Tests; |
| 4 | |
| 5 | use PHPUnit\Framework\TestCase; |
| 6 | use Illuminate\Support\Collection; |
| 7 | |
| 8 | class SupportCollectionTest extends TestCase |
| 9 | { |
| 10 | public function testGetWithNullReturnsNull() |
| 11 | { |
| 12 | $collection = new Collection([1, 2, 3]); |
| 13 | |
| 14 | $this->assertNull($collection->get(null)); |
| 15 | } |
| 16 | } |
| 17 |