/**
  * @group DBAL-474
  */
 public function testFiltersSequences()
 {
     $configuration = new Configuration();
     $configuration->setFilterSchemaAssetsExpression('/^schema/');
     $sequences = array(array('relname' => 'foo', 'schemaname' => 'schema'), array('relname' => 'bar', 'schemaname' => 'schema'), array('relname' => 'baz', 'schemaname' => ''), array('relname' => 'bloo', 'schemaname' => 'bloo_schema'));
     $this->connection->expects($this->any())->method('getConfiguration')->will($this->returnValue($configuration));
     $this->connection->expects($this->at(0))->method('fetchAll')->will($this->returnValue($sequences));
     $this->connection->expects($this->at(1))->method('fetchAll')->will($this->returnValue(array(array('min_value' => 1, 'increment_by' => 1))));
     $this->connection->expects($this->at(2))->method('fetchAll')->will($this->returnValue(array(array('min_value' => 2, 'increment_by' => 2))));
     $this->connection->expects($this->exactly(3))->method('fetchAll');
     $this->assertEquals(array(new Sequence('schema.foo', 2, 2), new Sequence('schema.bar', 1, 1)), $this->schemaManager->listSequences('database'));
 }