MathPHP\SetTheory\SetTest::dataProviderForToString PHP Метод

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

    public function dataProviderForToString()
    {
        $vector = new Vector([1, 2, 3]);
        $vector_hash = spl_object_hash($vector);
        return [[[], 'Ø'], [[new Set()], 'Set{Ø}'], [[0], 'Set{0}'], [[1], 'Set{1}'], [[5], 'Set{5}'], [[-5], 'Set{-5}'], [[1, 2], 'Set{1, 2}'], [[1, 2, 3], 'Set{1, 2, 3}'], [[1, 2, 3, new Set()], 'Set{1, 2, 3, Ø}'], [[1, -2, 3], 'Set{1, -2, 3}'], [[1, 2, 3, 4, 5, 6], 'Set{1, 2, 3, 4, 5, 6}'], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10], 'Set{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}'], [[1, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 2, 2.01, 2.001, 2.15], 'Set{1, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 2, 2.01, 2.001, 2.15}'], [['a'], 'Set{a}'], [['a', 'b'], 'Set{a, b}'], [['a', 'b', 'c', 'd', 'e'], 'Set{a, b, c, d, e}'], [[1, 2, 'a', 'b', 3.14, 'hello', 'goodbye'], 'Set{1, 2, a, b, 3.14, hello, goodbye}'], [[1, 2, 3, new Set([1, 2]), 'a', 'b'], 'Set{1, 2, 3, Set{1, 2}, a, b}'], [['a', 1, 'b', new Set([1, 'b']), new Set([3, 4, 5]), '4', 5], 'Set{a, 1, b, Set{1, b}, Set{3, 4, 5}, 4, 5}'], [[1, 2, new Set([1, 2, new Set([1, 2])])], 'Set{1, 2, Set{1, 2, Set{1, 2}}}'], [[1, 2, [1, 2, 3]], 'Set{1, 2, Array(a:3:{i:0;i:1;i:1;i:2;i:2;i:3;})}'], [[1, 2, [1, 2, 3], [1, 2, 3]], 'Set{1, 2, Array(a:3:{i:0;i:1;i:1;i:2;i:2;i:3;})}'], [[1, 2, $vector], "Set{1, 2, MathPHP\\LinearAlgebra\\Vector({$vector_hash})}"], [[1, 2, $vector, $vector], "Set{1, 2, MathPHP\\LinearAlgebra\\Vector({$vector_hash})}"]];
    }