Location: PHPKode > scripts > Phinx > phinx-0.2.x-dev/tests/Phinx/Db/Adapter/PdoAdapterTest.php
<?php

namespace Test\Phinx\Db\Adapter;

use Phinx\Db\Adapter\PdoAdapter;

class PdoAdapterTest extends \PHPUnit_Framework_TestCase
{
    private $adapter;
    
    public function setUp()
    {
        $this->adapter = $this->getMockForAbstractClass('\Phinx\Db\Adapter\PdoAdapter', array(array('foo' => 'bar')));
    }
    
    public function tearDown()
    {
        unset($this->adapter);
    }
    
    public function testOptions()
    {
        $options = $this->adapter->getOptions();
        $this->assertArrayHasKey('foo', $options);
        $this->assertEquals('bar', $options['foo']);
    }
    
    public function testSchemaTableName()
    {
        $this->adapter->setSchemaTableName('schema_table_test');
        $this->assertEquals('schema_table_test', $this->adapter->getSchemaTableName());
    }
}
Return current item: Phinx