1
0
mirror of synced 2025-03-21 23:43:53 +03:00

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

This commit is contained in:
guilhermeblanco 2010-01-18 02:02:37 +00:00
parent 4d88f40c81
commit 54d4476c47

View File

@ -0,0 +1,23 @@
<?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'));
}
}