MathPHP\SetTheory\ImmutableSetTest::testClearDoesNothing PHP Метод

testClearDoesNothing() публичный Метод

    public function testClearDoesNothing()
    {
        $A = new ImmutableSet([1, 2, 3, 4]);
        $B = $A->copy();
        $A->clear();
        $this->assertEquals($B, $A);
        $this->assertEquals($B->asArray(), $A->asArray());
    }