Skip to content

Commit

Permalink
Guides: write test for RenderCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
mvriel committed Mar 7, 2021
1 parent 4cf1648 commit e900858
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
Expand Up @@ -2,9 +2,8 @@

declare(strict_types=1);

namespace phpDocumentor\Guides\RestructuredText;
namespace phpDocumentor\Guides;

use phpDocumentor\Guides\InvalidLink;
use PHPUnit\Framework\TestCase;

final class InvalidLinkTest extends TestCase
Expand Down
21 changes: 21 additions & 0 deletions tests/unit/Guides/RenderCommandTest.php
@@ -0,0 +1,21 @@
<?php

declare(strict_types=1);

namespace phpDocumentor\Guides;

use League\Flysystem\FilesystemInterface;
use Mockery as m;
use Mockery\Adapter\Phpunit\MockeryTestCase;

final class RenderCommandTest extends MockeryTestCase
{
public function test_providing_a_destination_to_render_to() : void
{
$destination = m::mock(FilesystemInterface::class);

$command = new RenderCommand($destination);

self::assertSame($destination, $command->getDestination());
}
}

0 comments on commit e900858

Please sign in to comment.