diff --git a/README.md b/README.md
index 9a357b5..ad719f6 100644
--- a/README.md
+++ b/README.md
@@ -19,8 +19,8 @@ The main idea is simple: register Listener of PHPUnit and call Mocker at first.
use PHPUnit\Runner\BeforeTestHook;
use PHPUnit\Runner\BeforeFirstTestHook;
- use Xepozz\InternalFunctionMocker\Mocker;
- use Xepozz\InternalFunctionMocker\MockerState;
+ use Xepozz\InternalMocker\Mocker;
+ use Xepozz\InternalMocker\MockerState;
final class MockerExtension implements BeforeTestHook, BeforeFirstTestHook
{
@@ -112,7 +112,7 @@ class ServiceTest extends TestCase
```
See full example
-in [`\Xepozz\InternalFunctionMocker\Tests\Integration\DateTimeTest::testRun2`](tests/Integration/DateTimeTest.php)
+in [`\Xepozz\InternalMocker\Tests\Integration\DateTimeTest::testRun2`](tests/Integration/DateTimeTest.php)
#### Pre-defined mock
diff --git a/composer.json b/composer.json
index c8de418..1c6416f 100644
--- a/composer.json
+++ b/composer.json
@@ -1,14 +1,14 @@
{
- "name": "xepozz/internal-function-mock",
+ "name": "xepozz/internal-mocker",
"type": "library",
"autoload": {
"psr-4": {
- "Xepozz\\InternalFunctionMocker\\": "src/"
+ "Xepozz\\InternalMocker\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
- "Xepozz\\InternalFunctionMocker\\Tests\\": "tests/"
+ "Xepozz\\InternalMocker\\Tests\\": "tests/"
}
},
"authors": [
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
index d5d6403..e822785 100644
--- a/phpunit.xml.dist
+++ b/phpunit.xml.dist
@@ -11,7 +11,7 @@
resolveDependencies="true">
-
+
diff --git a/src/Mocker.php b/src/Mocker.php
index b50afdf..b58ec65 100644
--- a/src/Mocker.php
+++ b/src/Mocker.php
@@ -1,7 +1,7 @@
'Xepozz\InternalFunctionMocker\Tests\Integration',
+ 'namespace' => 'Xepozz\InternalMocker\Tests\Integration',
'name' => 'time',
'result' => 555,
'arguments' => [],
],
[
- 'namespace' => 'Xepozz\InternalFunctionMocker\Tests\Integration',
+ 'namespace' => 'Xepozz\InternalMocker\Tests\Integration',
'name' => 'str_contains',
'result' => false,
'arguments' => [
@@ -29,7 +29,7 @@ public function executeBeforeFirstTest(): void
],
],
[
- 'namespace' => 'Xepozz\InternalFunctionMocker\Tests\Integration',
+ 'namespace' => 'Xepozz\InternalMocker\Tests\Integration',
'name' => 'str_contains',
'result' => false,
'arguments' => [
diff --git a/tests/MockerTest.php b/tests/MockerTest.php
index 986d097..cd19c20 100644
--- a/tests/MockerTest.php
+++ b/tests/MockerTest.php
@@ -1,11 +1,11 @@
'Xepozz\InternalFunctionMocker\Tests\Integration',
+ 'namespace' => 'Xepozz\InternalMocker\Tests\Integration',
'name' => 'time',
'result' => 555,
'arguments' => [],
],
],
<< 'Xepozz\InternalFunctionMocker\Tests\Integration',
+ 'namespace' => 'Xepozz\InternalMocker\Tests\Integration',
'name' => 'str_contains',
'result' => false,
'arguments' => [
@@ -67,7 +67,7 @@ function time(...\$arguments)
],
],
[
- 'namespace' => 'Xepozz\InternalFunctionMocker\Tests\Integration',
+ 'namespace' => 'Xepozz\InternalMocker\Tests\Integration',
'name' => 'str_contains',
'result' => false,
'arguments' => [
@@ -77,24 +77,24 @@ function time(...\$arguments)
],
],
<< 'string','needle' => 'str'],
false
);
MockerState::addCondition(
- "Xepozz\InternalFunctionMocker\Tests\Integration",
+ "Xepozz\InternalMocker\Tests\Integration",
"str_contains",
['haystack' => 'string2','needle' => 'str'],
false
);
- namespace Xepozz\InternalFunctionMocker\Tests\Integration;
+ namespace Xepozz\InternalMocker\Tests\Integration;
- use Xepozz\InternalFunctionMocker\MockerState;
+ use Xepozz\InternalMocker\MockerState;
function str_contains(...\$arguments)
{