Example #1
0
 /**
  * @covers ::checkDuplicateIndices
  */
 public function testCheckIsDuplicateEmpty()
 {
     /**
      * Indices
      */
     $indices = new Table\IndexCollection();
     $indices->add(new Table\Index('id', null, ['id']));
     $indices->add(new Table\Index('active', null, ['active']));
     /**
      * Table
      */
     $table = new Table(null, null, new Table\ColumnCollection(), new Table\IndexCollection());
     $result = $table->checkDuplicateIndices($indices);
     $this->assertSame([], $result);
 }