PHPackages                             foogile/nb-remote-phpunit - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. foogile/nb-remote-phpunit

ActiveLibrary[Testing &amp; Quality](/categories/testing)

foogile/nb-remote-phpunit
=========================

Execute PHPUnit tests over ssh using NetBeans

v0.0.2(11y ago)2904GPL-3.0PHPPHP &gt;=5.3

Since Apr 19Pushed 9y ago1 watchersCompare

[ Source](https://github.com/stianlik/nb-remote-phpunit)[ Packagist](https://packagist.org/packages/foogile/nb-remote-phpunit)[ RSS](/packages/foogile-nb-remote-phpunit/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

NetBeans remote PHPUnit runner
==============================

[](#netbeans-remote-phpunit-runner)

Custom PHPUnit script that enables NetBeans to run tests on a remote host. Mainly developed to make Vagrant environments more convenient to work with, but it can easily be extended to communicate with other remote hosts.

Installation
------------

[](#installation)

The package should be installed using composer:

```
compose require foogile/nb-remote-phpunit
```

Subsequent sections desribe more specific installations.

### Vagrant

[](#vagrant)

Default Vagrant test scripts can be installed using the following commands:

```
vagrant ssh;
cd /vagrant
compose require foogile/nb-remote-phpunit
```

### Other

[](#other)

See "Custom test runner".

Usage
-----

[](#usage)

Activate remote execution in NetBeans 8 as follows:

1. Right click your project and click "Properties"
2. Navigate to "Testing" &gt; "PHPUnit"
3. Check "Use Custom PHPUnit Script" and point "PHPUnit Script" to `VAGRANT_PATH/vendor/foogile/nb-remote-phpunit/netbeans/phpunit-vagrant.php`, where `VAGRANT_PATH` is an absolute path to your vagrant folder.
4. Run tests as you would normally do

Custom test runner
------------------

[](#custom-test-runner)

You can run tests on custom remote hosts by implementing a custom remote host and providing a custom NetBeans PHPUnit script.

For example:

```
class SSHRemoteHost implements RemoteHostInterface
{
    public public put($localPath, $remotePath)
    {
        exec("scp $src myhost.com:$dst");
    }

    public function get($remotePath, $localpath)
    {
        exec("scp myhost.com:$remotePath $localPath");
    }

    public function delete($remotePath)
    {
        exec("ssh myhost.com 'rm $remotePath'");
    }

    public function exec($command)
    {
        exec("ssh myhost.com '$command'");
    }
```

See `netbeans/phpunit-vagrant.php` for an example of a custom NetBeans PHPUnit script.

Pull requests are welcome :)

Credits
-------

[](#credits)

Based on the blog post [Running PHPUnit tests on a VM, from NetBeans](https://www.brianfenton.us/blog/2012/03/03/running-phpunit-tests-on-vm-from/).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

4047d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/eb3f6c4b992faba1bb41e554e3a7dab4471f50b48d47deb6bc805ce4bdd648ba?d=identicon)[stianlik](/maintainers/stianlik)

---

Top Contributors

[![stianlik](https://avatars.githubusercontent.com/u/410251?v=4)](https://github.com/stianlik "stianlik (12 commits)")[![simon77](https://avatars.githubusercontent.com/u/2952118?v=4)](https://github.com/simon77 "simon77 (1 commits)")

---

Tags

phpunitnetbeansremotevagrant

### Embed Badge

![Health badge](/badges/foogile-nb-remote-phpunit/health.svg)

```
[![Health](https://phpackages.com/badges/foogile-nb-remote-phpunit/health.svg)](https://phpackages.com/packages/foogile-nb-remote-phpunit)
```

###  Alternatives

[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[johnkary/phpunit-speedtrap

Find and report on slow tests in your PHPUnit test suite

78137.2M122](/packages/johnkary-phpunit-speedtrap)[spatie/phpunit-snapshot-assertions

Snapshot testing with PHPUnit

69417.9M510](/packages/spatie-phpunit-snapshot-assertions)[phpspec/prophecy-phpunit

Integrating the Prophecy mocking library in PHPUnit test cases

19254.9M1.4k](/packages/phpspec-prophecy-phpunit)[yoast/phpunit-polyfills

Set of polyfills for changed PHPUnit functionality to allow for creating PHPUnit cross-version compatible tests

18338.5M841](/packages/yoast-phpunit-polyfills)[ergebnis/phpunit-slow-test-detector

Provides facilities for detecting slow tests in phpunit/phpunit.

1468.1M72](/packages/ergebnis-phpunit-slow-test-detector)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
