From 4d88f40c810c310d9291558c2a8c4cd2e37bf562 Mon Sep 17 00:00:00 2001 From: guilhermeblanco Date: Mon, 18 Jan 2010 02:02:15 +0000 Subject: [PATCH] [2.0] Added unit tests for CLI Configuration. Fixed hasAttrbibute() issue of undefined property. --- lib/Doctrine/Common/Cli/Configuration.php | 2 +- tests/Doctrine/Tests/Common/Cli/AllTests.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Doctrine/Common/Cli/Configuration.php b/lib/Doctrine/Common/Cli/Configuration.php index 4f7be0d14..5ac6f8bea 100644 --- a/lib/Doctrine/Common/Cli/Configuration.php +++ b/lib/Doctrine/Common/Cli/Configuration.php @@ -81,6 +81,6 @@ class Configuration */ public function hasAttribute($name) { - return isset($this->_attribute[$name]); + return isset($this->_attributes[$name]); } } \ No newline at end of file diff --git a/tests/Doctrine/Tests/Common/Cli/AllTests.php b/tests/Doctrine/Tests/Common/Cli/AllTests.php index 0f3a4850a..da6b6b5f9 100644 --- a/tests/Doctrine/Tests/Common/Cli/AllTests.php +++ b/tests/Doctrine/Tests/Common/Cli/AllTests.php @@ -19,6 +19,7 @@ class AllTests { $suite = new \Doctrine\Tests\DoctrineTestSuite('Doctrine Common CLI Tests'); + $suite->addTestSuite('Doctrine\Tests\Common\Cli\ConfigurationTest'); $suite->addTestSuite('Doctrine\Tests\Common\Cli\OptionTest'); $suite->addTestSuite('Doctrine\Tests\Common\Cli\OptionGroupTest'); $suite->addTestSuite('Doctrine\Tests\Common\Cli\StyleTest');