public function assertPhpUnit(\PHPUnit\Framework\TestCase $testCase, ProfileConfiguration $config, $callback)
    {
        @trigger_error('The method "assertPhpUnit" is deprecated since blackfire/php-sdk 1.4 and will be removed in 2.0. Use method "assertBlackfire" of trait "\Blackfire\Bridge\PhpUnit\TestCaseTrait" instead.', E_USER_DEPRECATED);

        if (!$config->hasMetadata('skip_timeline')) {
            $config->setMetadata('skip_timeline', 'true');
        }

        try {
            $probe = $this->createProbe($config);

            $callback();

            $profile = $this->endProbe($probe);

            $testCase->assertThat($profile, new BlackfireConstraint());

            return $profile;
        } catch (Exception\ExceptionInterface $e) {
            $testCase->markTestSkipped($e->getMessage());
        }
    }
public function assertPhpUnit(\PHPUnit\Framework\TestCase $testCase, ProfileConfiguration $config, $callback)
    {
        @trigger_error('The method "assertPhpUnit" is deprecated since blackfire/php-sdk 1.4 and will be removed in 2.0. Use method "assertBlackfire" of trait "\Blackfire\Bridge\PhpUnit\TestCaseTrait" instead.', E_USER_DEPRECATED);

        if (!$config->hasMetadata('skip_timeline')) {
            $config->setMetadata('skip_timeline', 'true');
        }

        try {
            $probe = $this->createProbe($config);

            $callback();

            $profile = $this->endProbe($probe);

            $testCase->assertThat($profile, new BlackfireConstraint());

            return $profile;
        } catch (Exception\ExceptionInterface $e) {
            $testCase->markTestSkipped($e->getMessage());
        }
    }
public function assertPhpUnit ( \ PHPUnit \ Framework \ TestCase $ testCase , ProfileConfiguration $ config , $ callback ) { @ trigger_error ( 'The method "assertPhpUnit" is deprecated since blackfire/php-sdk 1.4 and will be removed in 2.0. Use method "assertBlackfire" of trait "\Blackfire\Bridge\PhpUnit\TestCaseTrait" instead.' , E_USER_DEPRECATED ) ; if ( ! $ config -> hasMetadata ( 'skip_timeline' ) ) { $ config -> setMetadata ( 'skip_timeline' , 'true' ) ; } try { $ probe = $ this -> createProbe ( $ config ) ; $ callback ( ) ; $ profile = $ this -> endProbe ( $ probe ) ; $ testCase -> assertThat ( $ profile , new BlackfireConstraint ( ) ) ; return $ profile ; } catch ( Exception \ ExceptionInterface $ e ) { $ testCase -> markTestSkipped ( $ e -> getMessage ( ) ) ; } }
Profiles the callback and test the result against the given configuration.

@deprecated since 1.4, to be removed in 2.0
Profiles the callback and test the result against the given configuration .