Pheasant\Tests\TableCriteriaTest::setUp PHP Method

setUp() public method

public setUp ( )
    public function setUp()
    {
        parent::setUp();
        $this->table = $this->table('user', array('userid' => new Types\IntegerType(8, 'primary auto_increment'), 'firstname' => new Types\StringType(), 'lastname' => new Types\StringType()));
        $this->table->insert(array('firstname' => 'Llama', 'lastname' => 'Herder'));
        $this->table->insert(array('firstname' => 'Action', 'lastname' => 'Hero'));
        $this->assertRowCount(2, 'select * from user');
    }