From 54d4476c475a877974daa07c5acbd42067b7a00c Mon Sep 17 00:00:00 2001 From: guilhermeblanco Date: Mon, 18 Jan 2010 02:02:37 +0000 Subject: [PATCH] [2.0] Added unit tests for CLI Configuration. Fixed hasAttrbibute() issue of undefined property. --- .../Tests/Common/Cli/ConfigurationTest.php | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/Doctrine/Tests/Common/Cli/ConfigurationTest.php diff --git a/tests/Doctrine/Tests/Common/Cli/ConfigurationTest.php b/tests/Doctrine/Tests/Common/Cli/ConfigurationTest.php new file mode 100644 index 000000000..8e55ea5f1 --- /dev/null +++ b/tests/Doctrine/Tests/Common/Cli/ConfigurationTest.php @@ -0,0 +1,23 @@ +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