public function testSelects() { $matcher = array('tag' => 'option', 'attributes' => array('value' => 'BB'), 'content' => 'Barbados', 'parent' => array('tag' => 'select', 'attributes' => array('name' => 'test_country'))); $this->assertTag($matcher, \Addresses::selectCountry('test_country')); $this->assertNotEquals(\Addresses::selectState('state', null, array('country' => 'CA')), \Addresses::selectState('state')); $matcher = array('tag' => 'option', 'attributes' => array('value' => 'NV', 'selected' => 'selected'), 'content' => 'Nevada', 'parent' => array('tag' => 'select', 'attributes' => array('name' => 'test_states'))); $this->assertTag($matcher, \Addresses::selectState('test_states', 'NV')); }