Skip to content

Commit add6754

Browse files
committed
Rename package
1 parent 06292af commit add6754

File tree

11 files changed

+38
-38
lines changed

11 files changed

+38
-38
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ The main idea is simple: register Listener of PHPUnit and call Mocker at first.
1919

2020
use PHPUnit\Runner\BeforeTestHook;
2121
use PHPUnit\Runner\BeforeFirstTestHook;
22-
use Xepozz\InternalFunctionMocker\Mocker;
23-
use Xepozz\InternalFunctionMocker\MockerState;
22+
use Xepozz\InternalMocker\Mocker;
23+
use Xepozz\InternalMocker\MockerState;
2424

2525
final class MockerExtension implements BeforeTestHook, BeforeFirstTestHook
2626
{
@@ -112,7 +112,7 @@ class ServiceTest extends TestCase
112112
```
113113

114114
See full example
115-
in [`\Xepozz\InternalFunctionMocker\Tests\Integration\DateTimeTest::testRun2`](tests/Integration/DateTimeTest.php)
115+
in [`\Xepozz\InternalMocker\Tests\Integration\DateTimeTest::testRun2`](tests/Integration/DateTimeTest.php)
116116

117117
#### Pre-defined mock
118118

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
2-
"name": "xepozz/internal-function-mock",
2+
"name": "xepozz/internal-mocker",
33
"type": "library",
44
"autoload": {
55
"psr-4": {
6-
"Xepozz\\InternalFunctionMocker\\": "src/"
6+
"Xepozz\\InternalMocker\\": "src/"
77
}
88
},
99
"autoload-dev": {
1010
"psr-4": {
11-
"Xepozz\\InternalFunctionMocker\\Tests\\": "tests/"
11+
"Xepozz\\InternalMocker\\Tests\\": "tests/"
1212
}
1313
},
1414
"authors": [

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
resolveDependencies="true">
1212

1313
<extensions>
14-
<extension class="Xepozz\InternalFunctionMocker\Tests\Listener"/>
14+
<extension class="Xepozz\InternalMocker\Tests\Listener"/>
1515
</extensions>
1616
<php>
1717
<ini name="error_reporting" value="-1"/>

src/Mocker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
declare(strict_types=1);
33

4-
namespace Xepozz\InternalFunctionMocker;
4+
namespace Xepozz\InternalMocker;
55

66
use Yiisoft\VarDumper\VarDumper;
77

src/MockerState.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
declare(strict_types=1);
33

4-
namespace Xepozz\InternalFunctionMocker;
4+
namespace Xepozz\InternalMocker;
55

66
final class MockerState
77
{

tests/Integration/DateTime.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
declare(strict_types=1);
33

4-
namespace Xepozz\InternalFunctionMocker\Tests\Integration;
4+
namespace Xepozz\InternalMocker\Tests\Integration;
55

66
class DateTime
77
{

tests/Integration/DateTimeTest.php

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

4-
namespace Xepozz\InternalFunctionMocker\Tests\Integration;
4+
namespace Xepozz\InternalMocker\Tests\Integration;
55

66
use PHPUnit\Framework\TestCase;
7-
use Xepozz\InternalFunctionMocker\MockerState;
7+
use Xepozz\InternalMocker\MockerState;
88

99
final class DateTimeTest extends TestCase
1010
{
@@ -20,7 +20,7 @@ public function testRun2()
2020
$obj = new DateTime();
2121

2222
MockerState::addCondition(
23-
'Xepozz\InternalFunctionMocker\Tests\Integration',
23+
'Xepozz\InternalMocker\Tests\Integration',
2424
'time',
2525
[],
2626
100

tests/Integration/StrContains.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
declare(strict_types=1);
33

4-
namespace Xepozz\InternalFunctionMocker\Tests\Integration;
4+
namespace Xepozz\InternalMocker\Tests\Integration;
55

66
class StrContains
77
{

tests/Integration/StrContainsTest.php

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

4-
namespace Xepozz\InternalFunctionMocker\Tests\Integration;
4+
namespace Xepozz\InternalMocker\Tests\Integration;
55

66
use PHPUnit\Framework\TestCase;
7-
use Xepozz\InternalFunctionMocker\MockerState;
7+
use Xepozz\InternalMocker\MockerState;
88

99
class StrContainsTest extends TestCase
1010
{
@@ -34,7 +34,7 @@ public function testRun4()
3434
$obj = new StrContains();
3535

3636
MockerState::addCondition(
37-
'Xepozz\InternalFunctionMocker\Tests\Integration',
37+
'Xepozz\InternalMocker\Tests\Integration',
3838
'str_contains',
3939
['string4', 'str'],
4040
false

tests/Listener.php

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

4-
namespace Xepozz\InternalFunctionMocker\Tests;
4+
namespace Xepozz\InternalMocker\Tests;
55

66
use PHPUnit\Runner\BeforeFirstTestHook;
77
use PHPUnit\Runner\BeforeTestHook;
8-
use Xepozz\InternalFunctionMocker\Mocker;
9-
use Xepozz\InternalFunctionMocker\MockerState;
8+
use Xepozz\InternalMocker\Mocker;
9+
use Xepozz\InternalMocker\MockerState;
1010

1111
final class Listener implements BeforeFirstTestHook, BeforeTestHook
1212
{
1313
public function executeBeforeFirstTest(): void
1414
{
1515
$mocks = [
1616
[
17-
'namespace' => 'Xepozz\InternalFunctionMocker\Tests\Integration',
17+
'namespace' => 'Xepozz\InternalMocker\Tests\Integration',
1818
'name' => 'time',
1919
'result' => 555,
2020
'arguments' => [],
2121
],
2222
[
23-
'namespace' => 'Xepozz\InternalFunctionMocker\Tests\Integration',
23+
'namespace' => 'Xepozz\InternalMocker\Tests\Integration',
2424
'name' => 'str_contains',
2525
'result' => false,
2626
'arguments' => [
@@ -29,7 +29,7 @@ public function executeBeforeFirstTest(): void
2929
],
3030
],
3131
[
32-
'namespace' => 'Xepozz\InternalFunctionMocker\Tests\Integration',
32+
'namespace' => 'Xepozz\InternalMocker\Tests\Integration',
3333
'name' => 'str_contains',
3434
'result' => false,
3535
'arguments' => [

0 commit comments

Comments
 (0)