function testAllowedTypesShouldAllHaveSchema() { $missingSchemas = array(); foreach (PaymentRequest::getAllowedTypes() as $type) { $file = JsonSchemaValidator::schemaPathFor($type); if (!file_exists($file)) { $missingSchemas[] = $type; } } $this->assertEqual(0, sizeof($missingSchemas), "missing schemas for Payment types: " . join($missingSchemas, ', ')); }