コード例 #1
0
ファイル: RowTest.php プロジェクト: Vci/Libs
 /**
  * Complete
  */
 public function testSetHeaders()
 {
     // check for the correct exception when missing offset
     $headers = $this->headers;
     unset($headers[0]['offset']);
     $caught = false;
     try {
         $this->object->setHeaders($headers);
     } catch (Exception $expected) {
         $caught = true;
     }
     if (!$caught) {
         $this->fail('Missing "offset" was not caught');
     }
 }