Skip to content

Commit

Permalink
[PhpUnitBridge] Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Jun 26, 2019
1 parent ac3ae81 commit bca4761
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 50 deletions.
Expand Up @@ -26,6 +26,12 @@ public function testItCanDetermineTheClassWhereTheDeprecationHappened()

public function testItCanTellWhetherItIsInternal()
{
$r = new \ReflectionClass(Deprecation::class);

if (dirname($r->getFileName(), 2) !== dirname(__DIR__, 2)) {
$this->markTestSkipped('Test case is not compatible with having the bridge in vendor/');
}

$deprecation = new Deprecation('💩', $this->debugBacktrace(), __FILE__);
$this->assertSame(Deprecation::TYPE_SELF, $deprecation->getType());
}
Expand Down
@@ -1,9 +1,9 @@
--TEST--
Test DeprecationErrorHandler in disabled mode
Test DeprecationErrorHandler in weak mode
--FILE--
<?php

$_SERVER['SYMFONY_DEPRECATIONS_HELPER'] = 'disabled';
putenv('SYMFONY_DEPRECATIONS_HELPER=disabled');
putenv('ANSICON');
putenv('ConEmuANSI');
putenv('TERM');
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit bca4761

Please sign in to comment.