Skip to content

Repository files navigation

Transunit

Convert PhpSpec tests to PHPUnit using the Prophecy library.

This tool takes a different approach to Rector's implementation. Whilst Rector will convert to PHPUnit's internal mocking library, this tool will instead rewrite the test to use PhpSpec's Prophecy library instead within PHPUnit. This tool also has a more linear pipeline.

Dependencies

  • nikic/php-parser
  • symfony/finder
  • symfony/filesystem

Usage

php ./transunit.php spec tests/unit

About

Convert PhpSpec tests to PHPUnit

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages