checkBuildString($expected, $type, $length, $calls); } /** * @param string $expected * @param string $type * @param integer $length * @param array $calls */ public function checkBuildString($expected, $type, $length, $calls) { $builder = $this->getColumnSchemaBuilder($type, $length); foreach ($calls as $call) { $method = array_shift($call); call_user_func_array([$builder, $method], $call); } self::assertEquals($expected, $builder->__toString()); } }