/** * @covers Zend\Db\Sql\Ddl\CreateTable::getRawState * @depends testAddConstraint */ public function testRawStateViaConstraint(CreateTable $ct) { $state = $ct->getRawState('constraints'); $this->assertInternalType('array', $state); $constraint = array_pop($state); $this->assertInstanceOf('Zend\\Db\\Sql\\Ddl\\Constraint\\ConstraintInterface', $constraint); }