spacevim/bundle/phpcomplete.vim-vim7/tests/LoadData_test.vim

25 lines
893 B
VimL
Raw Normal View History

2024-08-21 14:17:26 +08:00
fun! SetUp()
endf
fun! TestCase_creates_various_global_hashes()
call phpcomplete#LoadData()
call VUAssertTrue(exists('g:php_builtin_classes'))
call VUAssertTrue(exists('g:php_builtin_classnames'))
call VUAssertTrue(exists('g:php_builtin_interfaces'))
call VUAssertTrue(exists('g:php_builtin_interfacenames'))
call VUAssertTrue(exists('g:php_builtin_functions'))
call VUAssertTrue(exists('g:php_builtin_vars'))
endf
fun! TestCase_php_built_classnames_and_builtin_classes_are_indexed_lowercase()
call phpcomplete#LoadData()
call VUAssertTrue(has_key(g:php_builtin_classes, 'datetime'))
call VUAssertTrue(has_key(g:php_builtin_classnames, 'datetime'))
call VUAssertTrue(has_key(g:php_builtin_interfaces, 'traversable'))
call VUAssertTrue(has_key(g:php_builtin_interfacenames, 'traversable'))
endf
" vim: foldmethod=marker:expandtab:ts=4:sts=4