public function testGetConstraintsSchema() { $constraintsSchema = array('maxFileSize' => array('type' => 'int', 'default' => false)); $validator = new FileSizeValidator(); $this->assertSame($constraintsSchema, $validator->getConstraintsSchema()); }