Pheasant\Tests\AutoIncrementTest::setUp PHP Method

setUp() public method

public setUp ( )
    public function setUp()
    {
        parent::setUp();
        // set up a domain object
        $this->initialize('Pheasant\\DomainObject', function ($builder) {
            $builder->properties(array('id' => new Types\IntegerType(null, 'primary auto_increment'), 'value' => new Types\StringType()));
        });
        // set up tables
        $this->pheasant->register('Pheasant\\DomainObject', new RowMapper('domainobject'));
        $this->migrate('domainobject', DomainObject::schema());
    }