Пример #1
0
 /**
  * Test get a full list of royal mail methods
  *
  * @return null
  */
 public function testGetAllMethods()
 {
     /**
      * All methods from the carrier class
      *
      * @var array $methods
      */
     $methods = $this->_carrier->getAllMethods();
     $this->assertInternalType('array', $methods);
     $this->assertTrue(count($methods) > 0);
     foreach ($methods as $code => $name) {
         $this->assertInternalType('string', $code);
         $this->assertFalse(strpos($code, ' '));
         $this->assertInternalType('string', $name);
         $this->assertTrue(strpos($name, ' ') !== false);
     }
 }