2010-01-18 05:02:37 +03:00
|
|
|
<?php
|
|
|
|
|
2010-03-24 05:37:45 +03:00
|
|
|
namespace Doctrine\Tests\Common\CLI;
|
2010-01-18 05:02:37 +03:00
|
|
|
|
2010-03-24 05:37:45 +03:00
|
|
|
use Doctrine\Common\CLI\Configuration;
|
2010-01-18 05:02:37 +03:00
|
|
|
|
|
|
|
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'));
|
|
|
|
}
|
|
|
|
}
|