예제 #1
0
 /**
  * Generated from @assert ('A1)45@*(&UR)HQ)W.0000(*(HG))') === 0.
  */
 public function testGetInt2()
 {
     $this->assertSame(0, Inspekt::getInt('A1)45@*(&UR)HQ)W.0000(*(HG))'));
 }
예제 #2
0
파일: Cage.php 프로젝트: ekhtsasy/inspekt
 /**
  * Returns (int) value.
  *
  * @param mixed $key
  * @return int
  *
  * @tag filter
  */
 function getInt($key)
 {
     if (!$this->keyExists($key)) {
         return false;
     }
     return Inspekt::getInt($this->_getValue($key));
 }
예제 #3
0
파일: Cage.php 프로젝트: funkatron/inspekt
 /**
  * Returns (int) value.
  *
  * @param mixed $key
  * @return int
  * @throws Exception
  * @tag filter
  */
 public function getInt($key)
 {
     return Inspekt::getInt($this->getValue($key));
 }