Qa\SoftMocks::setPhpunitPath PHP Method

setPhpunitPath() public static method

public static setPhpunitPath ( string $phpunit_path )
$phpunit_path string - Part of path to phpunit so that it can be ignored when rewriting files
    public static function setPhpunitPath($phpunit_path)
    {
        if (!empty($phpunit_path)) {
            self::$phpunit_path = $phpunit_path;
        }
    }

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::setPhpunitPath