27 lines
716 B
PHP
27 lines
716 B
PHP
<?php
|
|
|
|
namespace Doctrine\Tests\ORM\Tools\Console;
|
|
|
|
use Doctrine\ORM\Tools\Console\ConsoleRunner;
|
|
use Doctrine\ORM\Version;
|
|
use Doctrine\Tests\DoctrineTestCase;
|
|
use Symfony\Component\Console\Helper\HelperSet;
|
|
|
|
/**
|
|
* @group DDC-3186
|
|
*
|
|
* @covers \Doctrine\ORM\Tools\Console\ConsoleRunner
|
|
*/
|
|
class ConsoleRunnerTest extends DoctrineTestCase
|
|
{
|
|
public function testCreateApplication()
|
|
{
|
|
$helperSet = new HelperSet();
|
|
$app = ConsoleRunner::createApplication($helperSet);
|
|
|
|
$this->assertInstanceOf('Symfony\Component\Console\Application', $app);
|
|
$this->assertSame($helperSet, $app->getHelperSet());
|
|
$this->assertEquals(Version::VERSION, $app->getVersion());
|
|
}
|
|
}
|