Skip to content

Commit

Permalink
Merge pull request #39 from facile-it/feature/public-tests
Browse files Browse the repository at this point in the history
Refactor public tests
  • Loading branch information
xzhayon committed Aug 4, 2017
2 parents 690881b + a048e27 commit d15d9f7
Show file tree
Hide file tree
Showing 26 changed files with 307 additions and 373 deletions.
12 changes: 0 additions & 12 deletions src/Moka/Exception/MockNotServedException.php

This file was deleted.

1 change: 0 additions & 1 deletion src/Moka/Proxy/ProxyInterface.php
Expand Up @@ -5,7 +5,6 @@

use Moka\Exception\InvalidArgumentException;
use Moka\Exception\MockNotCreatedException;
use Moka\Exception\MockNotServedException;

/**
* Class Proxy
Expand Down
11 changes: 11 additions & 0 deletions src/Moka/Tests/AbstractTestClass.php
@@ -0,0 +1,11 @@
<?php
declare(strict_types=1);

namespace Moka\Tests;

abstract class AbstractTestClass extends IncompleteAbstractTestClass
{
public function abstractMethod()
{
}
}
8 changes: 8 additions & 0 deletions src/Moka/Tests/BarTestClass.php
@@ -0,0 +1,8 @@
<?php
declare(strict_types=1);

namespace Moka\Tests;

class BarTestClass extends AbstractTestClass implements BarTestInterface
{
}
8 changes: 8 additions & 0 deletions src/Moka/Tests/BarTestInterface.php
@@ -0,0 +1,8 @@
<?php
declare(strict_types=1);

namespace Moka\Tests;

interface BarTestInterface
{
}
8 changes: 8 additions & 0 deletions src/Moka/Tests/FooTestClass.php
@@ -0,0 +1,8 @@
<?php
declare(strict_types=1);

namespace Moka\Tests;

class FooTestClass extends AbstractTestClass implements FooTestInterface
{
}
8 changes: 8 additions & 0 deletions src/Moka/Tests/FooTestInterface.php
@@ -0,0 +1,8 @@
<?php
declare(strict_types=1);

namespace Moka\Tests;

interface FooTestInterface
{
}
@@ -1,9 +1,9 @@
<?php
declare(strict_types=1);

namespace Tests;
namespace Moka\Tests;

abstract class AbstractTestClass implements TestInterface
abstract class IncompleteAbstractTestClass implements TestInterface
{
public $public;

Expand Down Expand Up @@ -56,4 +56,6 @@ public function withArguments(
public function throwException()
{
}

abstract public function abstractMethod();
}

0 comments on commit d15d9f7

Please sign in to comment.