Commit 4d88f40c authored by guilhermeblanco's avatar guilhermeblanco

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

parent 0cdb7995
......@@ -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
......@@ -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');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment