/** * Ensures that the validator follows expected behavior * * @return void */ public function testGetType() { $this->assertEquals(493, $this->validator->getType()); }
public function testTypeAutoDetectionHasNoSideEffect() { $validator = new NotEmpty(array('translatorEnabled' => true)); $this->assertEquals($validator->getDefaultType(), $validator->getType()); }