Skip to content

Commit d15d9f7

Browse files
authored
Merge pull request #39 from facile-it/feature/public-tests
Refactor public tests
2 parents 690881b + a048e27 commit d15d9f7

26 files changed

+307
-373
lines changed

src/Moka/Exception/MockNotServedException.php

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/Moka/Proxy/ProxyInterface.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
use Moka\Exception\InvalidArgumentException;
77
use Moka\Exception\MockNotCreatedException;
8-
use Moka\Exception\MockNotServedException;
98

109
/**
1110
* Class Proxy

src/Moka/Tests/AbstractTestClass.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
declare(strict_types=1);
3+
4+
namespace Moka\Tests;
5+
6+
abstract class AbstractTestClass extends IncompleteAbstractTestClass
7+
{
8+
public function abstractMethod()
9+
{
10+
}
11+
}

src/Moka/Tests/BarTestClass.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
declare(strict_types=1);
3+
4+
namespace Moka\Tests;
5+
6+
class BarTestClass extends AbstractTestClass implements BarTestInterface
7+
{
8+
}

src/Moka/Tests/BarTestInterface.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
declare(strict_types=1);
3+
4+
namespace Moka\Tests;
5+
6+
interface BarTestInterface
7+
{
8+
}

src/Moka/Tests/FooTestClass.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
declare(strict_types=1);
3+
4+
namespace Moka\Tests;
5+
6+
class FooTestClass extends AbstractTestClass implements FooTestInterface
7+
{
8+
}

src/Moka/Tests/FooTestInterface.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
declare(strict_types=1);
3+
4+
namespace Moka\Tests;
5+
6+
interface FooTestInterface
7+
{
8+
}

tests/AbstractTestClass.php renamed to src/Moka/Tests/IncompleteAbstractTestClass.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22
declare(strict_types=1);
33

4-
namespace Tests;
4+
namespace Moka\Tests;
55

6-
abstract class AbstractTestClass implements TestInterface
6+
abstract class IncompleteAbstractTestClass implements TestInterface
77
{
88
public $public;
99

@@ -56,4 +56,6 @@ public function withArguments(
5656
public function throwException()
5757
{
5858
}
59+
60+
abstract public function abstractMethod();
5961
}

0 commit comments

Comments
 (0)