Skip to content

Enhancement: Move indirect tests into separate namespace #95

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
failOnWarning="true"
>
<testsuites>
<testsuite name="Base">
<directory>tests/Test</directory>
<testsuite name="Static Analysis">
<directory>tests/StaticAnalysis</directory>
</testsuite>
</testsuites>
</phpunit>
2 changes: 1 addition & 1 deletion tests/Model/Bar.php → tests/StaticAnalysis/Bar.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace JanGregor\Prophecy\Test\Model;
namespace JanGregor\Prophecy\Test\StaticAnalysis;

interface Bar
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace JanGregor\Prophecy\Test\Model;
namespace JanGregor\Prophecy\Test\StaticAnalysis;

class BaseModel
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
<?php

namespace JanGregor\Prophecy\Test\Test;
namespace JanGregor\Prophecy\Test\StaticAnalysis;

use JanGregor\Prophecy\Test\Model\Bar;
use JanGregor\Prophecy\Test\Model\BaseModel;
use JanGregor\Prophecy\Test\Model\Baz;
use JanGregor\Prophecy\Test\Model\Foo;
use PHPUnit\Framework\TestCase;
use Prophecy\Argument;
use Prophecy\Prophecy\ObjectProphecy;

/**
* @internal
*
* @covers \JanGregor\Prophecy\Test\Model\BaseModel
* @coversNothing
*/
final class BaseModelTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Model/Baz.php → tests/StaticAnalysis/Baz.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace JanGregor\Prophecy\Test\Model;
namespace JanGregor\Prophecy\Test\StaticAnalysis;

abstract class Baz
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Model/Foo.php → tests/StaticAnalysis/Foo.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace JanGregor\Prophecy\Test\Model;
namespace JanGregor\Prophecy\Test\StaticAnalysis;

interface Foo
{
Expand Down