diff --git a/VERSION b/VERSION index 45466cc..3335ccb 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.2311.91257 +0.2311.91259 diff --git a/src/Type.php b/src/Type.php deleted file mode 100644 index aee236b..0000000 --- a/src/Type.php +++ /dev/null @@ -1,126 +0,0 @@ -getInterfaceNames() as $interface) - $tree[] = $interface; - - do { - $tree[] = $classInfo->getName(); - } while(($classInfo = $classInfo->getParentClass()) !== false); - - return $tree; - } -} diff --git a/tests/TypeTest.php b/tests/TypeTest.php deleted file mode 100644 index 7a4453c..0000000 --- a/tests/TypeTest.php +++ /dev/null @@ -1,49 +0,0 @@ -assertEquals(Type::default(Type::BOOL), false); - $this->assertEquals(Type::default(Type::INTEGER), 0); - $this->assertEquals(Type::default(Type::FLOAT), 0.0); - $this->assertEquals(Type::default(Type::STRING), ''); - $this->assertEquals(Type::default(Type::ARRAY), []); - $this->assertEquals(Type::default(Type::OBJECT), null); - $this->assertEquals(Type::default(Type::RESOURCE), null); - $this->assertEquals(Type::default(Type::CLOSED_RESOURCE), null); - $this->assertEquals(Type::default(Type::NULL), null); - $this->assertEquals(Type::default(Type::UNKNOWN), null); - } - - public function testClassTree(): void { - $array1 = Type::classTree(new AString('the')); - $array2 = [ - 'Index\\IString', - 'Stringable', - 'Traversable', - 'Index\\Serialisation\\IBencodeSerialisable', - 'Index\\IEquatable', - 'Index\\ICloneable', - 'Index\\IComparable', - 'JsonSerializable', - 'IteratorAggregate', - 'Countable', - 'ArrayAccess', - 'Index\\AString', - ]; - - $this->assertTrue(XArray::sequenceEquals($array1, $array2)); - } -}