ReporterTestBase.php 577 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace Fgm\ComposerCheck\Tests;
  3. use PHPUnit\Framework\TestCase;
  4. /**
  5. * Base class for Reporter tests.
  6. */
  7. class ReporterTestBase extends TestCase {
  8. const NS = '\\Fgm\\ComposerCheck\\';
  9. /**
  10. * {@inheritdoc}
  11. */
  12. public function setUp() {
  13. $this->prophecy = $this->prophesize();
  14. $this->prophecy->willExtend(self::NS . 'MergeBox');
  15. }
  16. /**
  17. * {@inheritdoc}
  18. */
  19. public function tearDown() {
  20. $mergeBox = $this->prophecy->reveal();
  21. $actual = $this->reporter->report($mergeBox);
  22. $this->assertEquals($this->expected, $actual);
  23. }
  24. }