1
0
mirror of synced 2025-01-10 11:07:10 +03:00
doctrine2/tests/Doctrine/Tests/ORM/Tools/Console/ConsoleRunnerTest.php

27 lines
716 B
PHP
Raw Normal View History

2014-07-24 11:23:36 +04:00
<?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());
}
}