/** * Tests values that are not strings * */ public function testNotString() { $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)); } }