/** * Test various output formats using php-eval with no Drupal site. * * @dataProvider provider **/ public function testOutputFormat($name, $format, $data, $expected) { drush_preflight(); $this->assertEquals($expected, trim(drush_format($data, array(), $format)), $name . ': ' . $format); }
/** * Test various output formats using php-eval with no Drupal site. * * @dataProvider provider **/ public function testOutputFormat($name, $format, $data, $expected) { drush_bootstrap(DRUSH_BOOTSTRAP_DRUSH); $this->assertEquals($expected, trim(drush_format($data, array(), $format)), $name . ': ' . $format); }