示例#1
0
文件: NullTest.php 项目: netvlies/zf
 /**
  * Ensures that the filter follows expected behavior
  *
  * @return void
  */
 public function testSettingFalseType()
 {
     try {
         $this->_filter->setType(true);
         $this->fail();
     } catch (Zend_Exception $e) {
         $this->assertContains('Unknown', $e->getMessage());
     }
 }
示例#2
0
 /**
  * Ensures that the filter follows expected behavior
  *
  * @return void
  */
 public function testSettingFalseType()
 {
     $this->setExpectedException('\\Zend\\Filter\\Exception\\InvalidArgumentException', 'Unknown');
     $this->_filter->setType(true);
 }