Sonata\Exporter\Test\Source\PropelCollectionSourceIteratorTest::setUp PHP Method

setUp() public method

public setUp ( )
    public function setUp()
    {
        if (!class_exists('PropelCollection')) {
            $this->markTestIncomplete('Propel is not available');
        }
        $data = array(array('id' => 1, 'name' => 'john', 'mail' => '[email protected]', 'created_at' => new \DateTime()), array('id' => 2, 'name' => 'john 2', 'mail' => '[email protected]', 'created_at' => new \DateTime()), array('id' => 3, 'name' => 'john 3', 'mail' => '[email protected]', 'created_at' => new \DateTime()));
        $this->collection = new \PropelCollection();
        $this->collection->setData($data);
    }