示例#1
0
 /**
  * Make sure that we can retrieve the name.
  */
 public function testGetName()
 {
     $this->assertEquals('Test Case', $this->subdivision->getName(), 'The name "Test Case" should be returned.');
 }
示例#2
0
 /**
  * Checks that the "US-CA" subdivision has had its values properly set.
  */
 private function checkSubdivision(Subdivision $subdivision)
 {
     $this->assertEquals('US-CA', $subdivision->getCode(), 'The code should be set.');
     $this->assertEquals('California', $subdivision->getName(), 'The name should be set.');
 }