Unify is a tool meant to make your life easier. It allows you to write tests and documentation at the same time, greatly reducing the time and effort spent delivering software. Unify makes a great complement to BDD processes and tools, like Behat. Behat is a fantastic way to document your system with regression testing. Unify aims to fill a similar niche, but on the unit and integration testing side, with a more developer-centric bent.
Below is an actual test. While intentionally simple, when Unify is run on its own project documentation, it will evaluate the code block below and assert that $x does, in fact, equal 'Zm9v'.
<?php
$x = Encoder::encode('foo'); // $x is 'Zm9v'
class Encoder
{
public static function encode($string)
{
return base64_encode($string);
}
}
The full user documentation can be found here.
The full developer documentation can be found here.
See the current roadmap here
Like most FOSS, this library was built on the backs of some incredible community projects. Special thanks to everyone involved in the projects below: