-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from laminas/3.5.x-merge-up-into-3.6.x_rJdgStH4
Merge release 3.5.2 into 3.6.x
- Loading branch information
Showing
15 changed files
with
184 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Introduction | ||
|
||
laminas-test provides tools to facilitate unit testing of your | ||
laminas-test provides tools to facilitate integration testing of your | ||
[laminas-mvc](https://docs.laminas.dev/laminas-mvc/) applications. | ||
|
||
PHPUnit is the only library supported currently. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
/** | ||
* @see https://github.com/laminas/laminas-test for the canonical source repository | ||
*/ | ||
|
||
namespace ModuleWithSimilarName\Test; | ||
|
||
use Laminas\Loader\StandardAutoloader; | ||
|
||
class Module | ||
{ | ||
/** | ||
* @psalm-return array<string, mixed> | ||
*/ | ||
public function getConfig(): array | ||
{ | ||
return include __DIR__ . '/config/module.config.php'; | ||
} | ||
|
||
/** | ||
* @return string[][][] | ||
* @psalm-return array<string, array<string, array<string, string>>> | ||
*/ | ||
public function getAutoloaderConfig(): array | ||
{ | ||
return [ | ||
StandardAutoloader::class => [ | ||
'namespaces' => [ | ||
__NAMESPACE__ => __DIR__ . '/src/', | ||
], | ||
], | ||
]; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
test/_files/ModuleWithSimilarName/Test/config/module.config.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
return [ | ||
'router' => [ | ||
'routes' => [ | ||
'similar_name_route' => [ | ||
'type' => 'literal', | ||
'options' => [ | ||
'route' => '/similar-name-test', | ||
'defaults' => [ | ||
'controller' => 'similar_name_index', | ||
'action' => 'unittests', | ||
], | ||
], | ||
], | ||
], | ||
], | ||
'controllers' => [ | ||
'invokables' => [ | ||
'similar_name_index' => 'ModuleWithSimilarName\Test\Controller\IndexController', | ||
], | ||
], | ||
]; |
17 changes: 17 additions & 0 deletions
17
test/_files/ModuleWithSimilarName/Test/src/Controller/IndexController.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
/** | ||
* @see https://github.com/laminas/laminas-test for the canonical source repository | ||
*/ | ||
|
||
namespace ModuleWithSimilarName\Test\Controller; | ||
|
||
use Laminas\Mvc\Controller\AbstractActionController; | ||
|
||
class IndexController extends AbstractActionController | ||
{ | ||
public function unittestsAction(): string | ||
{ | ||
return 'unittest'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
/** | ||
* @see https://github.com/laminas/laminas-test for the canonical source repository | ||
*/ | ||
|
||
namespace ModuleWithSimilarName\TestModule; | ||
|
||
use Laminas\Loader\StandardAutoloader; | ||
|
||
class Module | ||
{ | ||
/** | ||
* @psalm-return array<string, mixed> | ||
*/ | ||
public function getConfig(): array | ||
{ | ||
return include __DIR__ . '/config/module.config.php'; | ||
} | ||
|
||
/** | ||
* @return string[][][] | ||
* @psalm-return array<string, array<string, array<string, string>>> | ||
*/ | ||
public function getAutoloaderConfig(): array | ||
{ | ||
return [ | ||
StandardAutoloader::class => [ | ||
'namespaces' => [ | ||
__NAMESPACE__ => __DIR__ . '/src/', | ||
], | ||
], | ||
]; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
test/_files/ModuleWithSimilarName/TestModule/config/module.config.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
return [ | ||
'router' => [ | ||
'routes' => [ | ||
'similar_name_2_route' => [ | ||
'type' => 'literal', | ||
'options' => [ | ||
'route' => '/similar-name-2-test', | ||
'defaults' => [ | ||
'controller' => 'similar_name_2_index', | ||
'action' => 'unittests', | ||
], | ||
], | ||
], | ||
], | ||
], | ||
'controllers' => [ | ||
'invokables' => [ | ||
'similar_name_2_index' => 'ModuleWithSimilarName\TestModule\Controller\IndexController', | ||
], | ||
], | ||
]; |
17 changes: 17 additions & 0 deletions
17
test/_files/ModuleWithSimilarName/TestModule/src/Controller/IndexController.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
/** | ||
* @see https://github.com/laminas/laminas-test for the canonical source repository | ||
*/ | ||
|
||
namespace ModuleWithSimilarName\TestModule\Controller; | ||
|
||
use Laminas\Mvc\Controller\AbstractActionController; | ||
|
||
class IndexController extends AbstractActionController | ||
{ | ||
public function unittestsAction(): string | ||
{ | ||
return 'unittest'; | ||
} | ||
} |