borisrepl/boris

View on GitHub
lib/Boris/DumpInspector.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Boris;

/**
 * Passes values through var_dump() to inspect them.
 */
class DumpInspector implements Inspector
{
    public function inspect($variable)
    {
        ob_start();
        var_dump($variable);
        return sprintf(" → %s", trim(ob_get_clean()));
    }
}