Commit 54d4476c authored by guilhermeblanco's avatar guilhermeblanco

[2.0] Added unit tests for CLI Configuration. Fixed hasAttrbibute() issue of undefined property.

parent 4d88f40c
<?php
namespace Doctrine\Tests\Common\Cli;
use Doctrine\Common\Cli\Configuration;
require_once __DIR__ . '/../../TestInit.php';
class ConfigurationTest extends \Doctrine\Tests\DoctrineTestCase
{
public function testConfiguration()
{
$config = new Configuration();
$config->setAttribute('name', 'value');
$this->assertTrue($config->hasAttribute('name'));
$this->assertEquals('value', $config->hasAttribute('name'));
$config->setAttribute('name');
$this->assertFalse($config->hasAttribute('name'));
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment