Example #1
0
 /**
  * @group ZF-7936
  */
 public function testTruncateAppliedToTablesInReverseOrder()
 {
     $testAdapter = new \Zend\Test\DbAdapter();
     $connection = new Db\Connection($testAdapter, "schema");
     $dataSet = new \PHPUnit_Extensions_Database_DataSet_FlatXmlDataSet(__DIR__ . "/_files/truncateFixture.xml");
     $this->operation->execute($connection, $dataSet);
     $profiler = $testAdapter->getProfiler();
     $queries = $profiler->getQueryProfiles();
     $this->assertEquals(2, count($queries));
     $this->assertContains('bar', $queries[0]->getQuery());
     $this->assertContains('foo', $queries[1]->getQuery());
 }
Example #2
0
 public function testGetSetQuoteIdentifierSymbol()
 {
     $this->assertEquals('', $this->_adapter->getQuoteIdentifierSymbol());
     $this->_adapter->setQuoteIdentifierSymbol('`');
     $this->assertEquals('`', $this->_adapter->getQuoteIdentifierSymbol());
 }