mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2024-12-04 23:17:19 +01:00
Ignored README.md in SourceIntegrationTest
This commit is contained in:
parent
5d4592e27c
commit
ecfc8891e2
@ -19,13 +19,17 @@ class SourceIntegrationTest extends TestCase
|
||||
*/
|
||||
protected $sources;
|
||||
|
||||
private function iterate(string $path)
|
||||
/**
|
||||
* @param string $path
|
||||
*/
|
||||
private function iterate(string $path): void
|
||||
{
|
||||
$directoryIterator = new \DirectoryIterator($path);
|
||||
foreach ($directoryIterator as $fileInfo) {
|
||||
if (!in_array($fileInfo->getFilename(), [
|
||||
'.',
|
||||
'..',
|
||||
'README.md',
|
||||
])) {
|
||||
$pathname = $fileInfo->getPathname();
|
||||
if ($fileInfo->isDir()) {
|
||||
@ -43,6 +47,11 @@ class SourceIntegrationTest extends TestCase
|
||||
$this->iterate(self::SOURCE_DIRECTORY);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $path
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
private function filterSourcePath(string $path): string
|
||||
{
|
||||
$path = str_replace('/Abstract', '/', $path);
|
||||
@ -51,6 +60,11 @@ class SourceIntegrationTest extends TestCase
|
||||
return $path;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $path
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
private function getInterfacePath(string $path): string
|
||||
{
|
||||
return $this->filterSourcePath($path).'Interface.php';
|
||||
|
Loading…
Reference in New Issue
Block a user