1
0
mirror of synced 2024-12-15 15:46:02 +03:00
doctrine2/tests/Doctrine/Tests/Common/Cli/ConfigurationTest.php

23 lines
591 B
PHP

<?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'));
}
}