コード例 #1
0
ファイル: LocTest.php プロジェクト: travisj/zf
 /**
  * Tests values that are not strings
  *
  */
 public function testNotStrings()
 {
     $values = array(1, 1.4, null, new stdClass(), true, false);
     foreach ($values as $value) {
         $this->assertSame(false, $this->_validator->isValid($value));
         $messages = $this->_validator->getMessages();
         $this->assertContains('should be a string', current($messages));
     }
 }