1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- /*
- * This file is part of the PHP CS utility.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * This source file is subject to the MIT license that is bundled
- * with this source code in the file LICENSE.
- */
- namespace Symfony\CS\Tests\Fixer\Contrib;
- use Symfony\CS\Tests\Fixer\AbstractFixerTestBase;
- /**
- * @author Dariusz Rumiński <dariusz.ruminski@gmail.com>
- */
- class StrictFixerTest extends AbstractFixerTestBase
- {
- /**
- * @dataProvider provideTestFixCases
- */
- public function testFix($expected, $input = null)
- {
- $this->makeTest($expected, $input);
- }
- public function provideTestFixCases()
- {
- return array(
- array('<?php $a === $b;', '<?php $a == $b;'),
- array('<?php $a !== $b;', '<?php $a != $b;'),
- array('<?php $a !== $b;', '<?php $a <> $b;'),
- array('<?php echo "$a === $b";'),
- );
- }
- }
|