It took quite some time to figure out how to unit test a single (current) file.
e.g. edit src/Services/MyClass.php build/test -> test/MyClassTest.php
Netbeans uses a custom php file NetBeansSuite and extends PHPUnit_Framework_TestSuite
(and then even does a recursive glob() into the test dir to find files :-/ )
Here is a solution with build-variant to quickly run phpunit against a single test file.
i've put the tests in a single "test" directory.
in Sublime Text 3, Primary-B runs the last build-variant you have selected.
(S3 Build system might change this). Press Primary-Shift-B to choose the variant.
If you do not want to generate coverage for every test run, you can
configure coverage setting thru the build-variant or, for the whole project, thru the xml
It took quite some time to figure out how to unit test a single (current) file. e.g. edit
src/Services/MyClass.php
build/test ->test/MyClassTest.php
Netbeans uses a custom php file NetBeansSuite and extends PHPUnit_Framework_TestSuite (and then even does a recursive glob() into the test dir to find files :-/ )
Here is a solution with build-variant to quickly run phpunit against a single test file. i've put the tests in a single "test" directory.
in Sublime Text 3, Primary-B runs the last build-variant you have selected. (S3 Build system might change this). Press Primary-Shift-B to choose the variant.
If you do not want to generate coverage for every test run, you can configure coverage setting thru the build-variant or, for the whole project, thru the xml
project.sublime-project
phpunit.xml