12345678910111213141516171819202122232425262728293031 |
- <?php
- namespace Fgm\ComposerCheck\Tests;
- use PHPUnit\Framework\TestCase;
- /**
- * Base class for Reporter tests.
- */
- class ReporterTestBase extends TestCase {
- const NS = '\\Fgm\\ComposerCheck\\';
- /**
- * {@inheritdoc}
- */
- public function setUp() {
- $this->prophecy = $this->prophesize();
- $this->prophecy->willExtend(self::NS . 'MergeBox');
- }
- /**
- * {@inheritdoc}
- */
- public function tearDown() {
- $mergeBox = $this->prophecy->reveal();
- $actual = $this->reporter->report($mergeBox);
- $this->assertEquals($this->expected, $actual);
- }
- }
|