Functional\Tests\PluckTest::setUp PHP Метод

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

public setUp ( )
    public function setUp()
    {
        parent::setUp();
        $this->propertyExistsEverywhereArray = [(object) ['property' => 1], (object) ['property' => 2]];
        $this->propertyExistsEverywhereIterator = new ArrayIterator($this->propertyExistsEverywhereArray);
        $this->propertyExistsSomewhere = [(object) ['property' => 1], (object) ['otherProperty' => 2]];
        $this->propertyMagicGet = [new MagicGet(['property' => 1]), new MagicGet(['property' => 2]), ['property' => '3'], new ArrayObject(['property' => 4])];
        $this->mixedCollection = [(object) ['property' => 1], ['key' => 'value'], ['property' => 2]];
        $this->keyedCollection = ['test' => (object) ['property' => 1], 'test2' => (object) ['property' => 2]];
        $fixedArray = new SplFixedArray(1);
        $fixedArray[0] = 3;
        $this->numericArrayCollection = ['one' => [1], 'two' => [1 => 2], 'three' => ['idx' => 2], 'four' => new ArrayObject([2]), 'five' => $fixedArray];
        $this->issetExceptionArray = [(object) ['property' => 1], new MagicGetException(true, false)];
        $this->issetExceptionIterator = new ArrayIterator($this->issetExceptionArray);
        $this->getExceptionArray = [(object) ['property' => 1], new MagicGetException(false, true)];
        $this->getExceptionIterator = new ArrayIterator($this->getExceptionArray);
    }