NsplTest\ATest::testDropWhile PHP Метод

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

public testDropWhile ( )
    public function testDropWhile()
    {
        $this->assertEquals(['a', 'b', 'c', 4, 5, 6], dropWhile('is_numeric', [1, 2, 3, 'a', 'b', 'c', 4, 5, 6]));
        $this->assertEquals([4, 5, 6, 7, 8, 9], dropWhile(rpartial(lt, 4), [1, 2, 3, 4, 5, 6, 7, 8, 9]));
        $this->assertEquals([4, 5, 6, 7, 8, 9], dropWhile(rpartial(lt, 4), new \ArrayIterator([1, 2, 3, 4, 5, 6, 7, 8, 9])));
        $this->assertEquals([], dropWhile(rpartial(lt, 4), []));
        $this->assertEquals([4, 5, 6, 7, 8, 9], call_user_func(dropWhile, rpartial(lt, 4), [1, 2, 3, 4, 5, 6, 7, 8, 9]));
        $this->assertEquals('\\nspl\\a\\dropWhile', dropWhile);
    }