Qa\SoftMocks::rewrite PHP Method

rewrite() public static method

public static rewrite ( $file )
    public static function rewrite($file)
    {
        try {
            return self::doRewrite($file);
        } catch (\Exception $e) {
            echo "Could not rewrite file {$file}: " . $e->getMessage() . "\n";
            return false;
        }
    }

Usage Example

<?php

require_once dirname(__DIR__) . '/vendor/badoo/soft-mocks/src/bootstrap.php';
\QA\SoftMocks::setPhpunitPath('/vendor/phpunit/');
require_once \QA\SoftMocks::rewrite(dirname(__DIR__) . '/vendor/autoload.php');
require_once \QA\SoftMocks::rewrite(__DIR__ . '/unit/BaseLoggerTestCase.php');
All Usage Examples Of Qa\SoftMocks::rewrite