Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 216.73.216.44
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
1 /
vendor /
sebastian /
type /
tests /
unit /
Delete
Unzip
Name
Size
Permission
Date
Action
CallableTypeTest.php
4.04
KB
-rw-r--r--
2020-11-17 16:24
GenericObjectTypeTest.php
2.09
KB
-rw-r--r--
2020-11-17 16:24
IterableTypeTest.php
2.39
KB
-rw-r--r--
2020-11-17 16:24
NullTypeTest.php
1.67
KB
-rw-r--r--
2020-11-17 16:24
ObjectTypeTest.php
3.93
KB
-rw-r--r--
2020-11-17 16:24
SimpleTypeTest.php
4.9
KB
-rw-r--r--
2020-11-17 16:24
TypeNameTest.php
2.1
KB
-rw-r--r--
2020-11-17 16:24
TypeTest.php
3.95
KB
-rw-r--r--
2020-11-17 16:24
UnknownTypeTest.php
1.39
KB
-rw-r--r--
2020-11-17 16:24
VoidTypeTest.php
1.65
KB
-rw-r--r--
2020-11-17 16:24
Save
Rename
<?php declare(strict_types=1); /* * This file is part of sebastian/type. * * (c) Sebastian Bergmann <sebastian@phpunit.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace SebastianBergmann\Type; use PHPUnit\Framework\TestCase; use SebastianBergmann\Type\TestFixture\Iterator; /** * @covers \SebastianBergmann\Type\IterableType * * @uses \SebastianBergmann\Type\Type * @uses \SebastianBergmann\Type\TypeName * @uses \SebastianBergmann\Type\ObjectType * @uses \SebastianBergmann\Type\SimpleType */ final class IterableTypeTest extends TestCase { /** * @var IterableType */ private $type; protected function setUp(): void { $this->type = new IterableType(false); } public function testMayDisallowNull(): void { $this->assertFalse($this->type->allowsNull()); } public function testCanGenerateReturnTypeDeclaration(): void { $this->assertEquals(': iterable', $this->type->getReturnTypeDeclaration()); } public function testMayAllowNull(): void { $type = new IterableType(true); $this->assertTrue($type->allowsNull()); } public function testCanGenerateNullableReturnTypeDeclaration(): void { $type = new IterableType(true); $this->assertEquals(': ?iterable', $type->getReturnTypeDeclaration()); } public function testNullCanBeAssignedToNullableIterable(): void { $type = new IterableType(true); $this->assertTrue($type->isAssignable(new NullType)); } public function testIterableCanBeAssignedToIterable(): void { $this->assertTrue($this->type->isAssignable(new IterableType(false))); } public function testArrayCanBeAssignedToIterable(): void { $this->assertTrue( $this->type->isAssignable( Type::fromValue([], false) ) ); } public function testIteratorCanBeAssignedToIterable(): void { $this->assertTrue( $this->type->isAssignable( Type::fromValue(new Iterator, false) ) ); } public function testSomethingThatIsNotIterableCannotBeAssignedToIterable(): void { $this->assertFalse( $this->type->isAssignable( Type::fromValue(null, false) ) ); } }