Added tests for Country model

This commit is contained in:
Gregory Oschwald
2013-05-08 15:23:28 -07:00
parent 851925b2d6
commit 07913c02f4
2 changed files with 132 additions and 2 deletions
+2 -2
View File
@@ -30,9 +30,9 @@ class Country
return isset($this->raw[$field]) ? $this->raw[$field] : Array();
}
public function __get ($var)
public function __get ($attr)
{
if ($var != "instance" && isset($this->$var)) return $this->$var;
if ($attr != "instance" && isset($this->$attr)) return $this->$attr;
throw new \RuntimeException("Unknown attribute: $attr");
}