[DeprecationExtractor] deprecatinos wont be in tests

This commit is contained in:
TomasVotruba 2017-09-10 15:44:43 +02:00
parent 0b4da17102
commit 594422ccb3
3 changed files with 5 additions and 11 deletions

View File

@ -55,9 +55,6 @@ final class DeprecationExtractor
}
/**
* @todo duplicated method to
* @see \Rector\Console\Command\ReconstructCommand, extract to class
*
* @param string[] $directories
* @return SplFileInfo[] array
*/
@ -66,7 +63,7 @@ final class DeprecationExtractor
$finder = Finder::create()
->files()
->name('*.php')
->exclude('Tests') // obscure code, not common in /app
->exclude(['tests', 'Tests']) // deprecations won't be in tests
->in($directories);
return iterator_to_array($finder->getIterator());

View File

@ -6,6 +6,9 @@ use Rector\DeprecationExtractor\Contract\Deprecation\DeprecationInterface;
final class MessageToDeprecationTransformer
{
/**
* @todo require some context
*/
public function transform(string $message): DeprecationInterface
{
dump($message);

View File

@ -38,12 +38,6 @@ final class MessageToDeprecationTransformerTest extends AbstractContainerAwareTe
]);
$deprecationMessages = $this->deprecationCollector->getDeprecationMessages();
dump($deprecationMessages);
die;
// $this->messageToDeprecationTransformer->transform();
// @todo
$this->assertSame(1, 1);
$this->assertCount(17, $deprecationMessages);
}
}