|
| 1 | +<?php |
| 2 | + |
| 3 | +/* |
| 4 | + * This file is part of the Symfony package. |
| 5 | + * |
| 6 | + * (c) Fabien Potencier <[email protected]> |
| 7 | + * |
| 8 | + * For the full copyright and license information, please view the LICENSE |
| 9 | + * file that was distributed with this source code. |
| 10 | + */ |
| 11 | + |
| 12 | +namespace Symfony\Bridge\PhpUnit\Tests; |
| 13 | + |
| 14 | +use PHPUnit\Framework\TestCase; |
| 15 | + |
| 16 | +class BootstrapTest extends TestCase |
| 17 | +{ |
| 18 | + /** |
| 19 | + * @requires PHPUnit < 6.0 |
| 20 | + */ |
| 21 | + public function testAliasingOfErrorClasses() |
| 22 | + { |
| 23 | + $this->assertInstanceOf( |
| 24 | + \PHPUnit_Framework_Error::class, |
| 25 | + new \PHPUnit\Framework\Error\Error('message', 0, __FILE__, __LINE__) |
| 26 | + ); |
| 27 | + $this->assertInstanceOf( |
| 28 | + \PHPUnit_Framework_Error_Deprecated::class, |
| 29 | + new \PHPUnit\Framework\Error\Deprecated('message', 0, __FILE__, __LINE__) |
| 30 | + ); |
| 31 | + $this->assertInstanceOf( |
| 32 | + \PHPUnit_Framework_Error_Notice::class, |
| 33 | + new \PHPUnit\Framework\Error\Notice('message', 0, __FILE__, __LINE__) |
| 34 | + ); |
| 35 | + $this->assertInstanceOf( |
| 36 | + \PHPUnit_Framework_Error_Warning::class, |
| 37 | + new \PHPUnit\Framework\Error\Warning('message', 0, __FILE__, __LINE__) |
| 38 | + ); |
| 39 | + } |
| 40 | +} |
0 commit comments