<?php/* * This file is part of Psy Shell. * * (c) 2012-2015 Justin Hileman * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */namespacePsy\Test\CodeCleaner;usePsy\CodeCleaner\MagicConstantsPass;classMagicConstantsPassTestextendsCodeCleanerTestCase{publicfunctionsetUp(){$this->setPass(newMagicConstantsPass());}/** * @dataProvider magicConstants */publicfunctiontestProcess($from,$to){$this->assertProcessesAs($from,$to);}publicfunctionmagicConstants(){returnarray(array('__DIR__;','getcwd();'),array('__FILE__;',"'';"),array('___FILE___;','___FILE___;'),);}}