1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 17:30:04 +08:00
SpaceVim/bundle/phpcomplete.vim-vim7/tests/LoadData_test.vim

25 lines
893 B
VimL

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