4 * This file is part of Psy Shell.
6 * (c) 2012-2018 Justin Hileman
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Psy\Test\CodeCleaner;
14 use Psy\CodeCleaner\LegacyEmptyPass;
16 class LegacyEmptyPassTest extends CodeCleanerTestCase
18 public function setUp()
20 $this->setPass(new LegacyEmptyPass());
24 * @dataProvider invalidStatements
25 * @expectedException \Psy\Exception\ParseErrorException
27 public function testProcessInvalidStatement($code)
29 $this->parseAndTraverse($code);
32 public function invalidStatements()
34 if (version_compare(PHP_VERSION, '5.5', '>=')) {
51 * @dataProvider validStatements
53 public function testProcessValidStatement($code)
55 $this->parseAndTraverse($code);
56 $this->assertTrue(true);
59 public function validStatements()
61 if (version_compare(PHP_VERSION, '5.5', '<')) {