sponsor Vim development Vim logo Vim Book Ad

phpunit : Plugin to run phpunit test inside vim

 script karma  Rating -1/1, Downloaded by 428  Comments, bugs, improvements  Vim wiki

created by
Jiri Kratochvil
 
script type
utility
 
description
USAGE
------------

Script provide three command

:PhpUnit [path]

run phpunit with path. Path is not manadatory. If Path is not defined it vim-phpunit use <g:phpunit_tests> variable

:PhpUnitSwitchFile

Open testfile for current file. Name of testfile is taken from curent path in following way:
<g:phpunit_testroot>/<current path>/<file name>Test.php
and vice versa for testing file (if you are on test file, it will open source file complementary to testfile)

version 0.1 doesn't care about path existence - it's your responsibility
(maybe in next version)

:PhpUnitFile

run phpunit for current file. There is heuristic like :PhpUnitSwitchFile
eg.
[file] dir/file.php => [test] <g:phpunit_testroot>/dir/fileTest
[file] <g:phpunit_testroot>/dir/fileTest => [test] <g:phpunit_testroot>/dir/fileTest

KEYMAPPING
-----------------------

<Leader>t   :PhpUnit                           " hint: test
<Leader>tf  :PhpUnitFile                      " hint: test file
<Leader>ts :PhpUnitSwitchFile            " hint: test swich (swap)


HOMEPAGE
-------------------
https://github.com/klokane/vim-phpunit


Your suggestions are welcomed (best way: issue request tracker on github)

 
install details
just save into you plugins directory
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
phpunit.vim 0.1 2011-01-10 7.0 Jiri Kratochvil Initial upload
ip used for rating: 3.134.78.106

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github