Split src/
and tests/
directories
This commit is contained in:
parent
89f6a6dada
commit
51cd9ffdca
|
@ -12,9 +12,9 @@ sculpin_content_types:
|
|||
permalink: /presentations/:basename/
|
||||
|
||||
services:
|
||||
Modules\Experience\TwigExtension\ExperienceTwigExtension:
|
||||
App\Experience\TwigExtension\ExperienceTwigExtension:
|
||||
tags:
|
||||
- {name: twig.extension}
|
||||
Modules\Presentations\TwigExtension\PresentationTwigExtension:
|
||||
App\Presentations\TwigExtension\PresentationTwigExtension:
|
||||
tags:
|
||||
- {name: twig.extension}
|
||||
|
|
|
@ -11,7 +11,13 @@
|
|||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Modules\\": "modules/" }
|
||||
"App\\": "src/"
|
||||
}
|
||||
},
|
||||
"autoload-dev": {
|
||||
"psr-4": {
|
||||
"Tests\\": "tests/"
|
||||
}
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^11.1"
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="./vendor/autoload.php" colors="true" stopOnFailure="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.1/phpunit.xsd" cacheDirectory=".phpunit.cache">
|
||||
<testsuites>
|
||||
<testsuite name="Modules">
|
||||
<directory suffix="Test.php">modules</directory>
|
||||
<testsuite name="App">
|
||||
<directory suffix="Test.php">tests</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
</phpunit>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Modules\Experience\TwigExtension;
|
||||
namespace App\Experience\TwigExtension;
|
||||
|
||||
use Sculpin\Contrib\ProxySourceCollection\ProxySourceItem;
|
||||
use Twig\Extension\AbstractExtension;
|
||||
|
@ -19,7 +19,7 @@ class ExperienceTwigExtension extends AbstractExtension
|
|||
|
||||
public function getName(): string
|
||||
{
|
||||
return 'modules.experience';
|
||||
return 'experience';
|
||||
}
|
||||
|
||||
public function getYearsOfExperience(): int
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Modules\Presentations\TwigExtension;
|
||||
namespace App\Presentations\TwigExtension;
|
||||
|
||||
use Sculpin\Contrib\ProxySourceCollection\ProxySourceItem;
|
||||
use Twig\Extension\AbstractExtension;
|
||||
|
@ -17,7 +17,7 @@ class PresentationTwigExtension extends AbstractExtension
|
|||
|
||||
public function getName(): string
|
||||
{
|
||||
return 'modules.presentations';
|
||||
return 'presentations';
|
||||
}
|
||||
|
||||
public function getPresentationCount(array $presentations): int
|
|
@ -1,9 +1,9 @@
|
|||
<?php
|
||||
|
||||
namespace Modules\Presentations\Tests\TwigExtension;
|
||||
namespace Tests\Presentations\Tests\TwigExtension;
|
||||
|
||||
use App\Presentations\TwigExtension\PresentationTwigExtension;
|
||||
use Dflydev\DotAccessConfiguration\Configuration;
|
||||
use Modules\Presentations\TwigExtension\PresentationTwigExtension;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Sculpin\Contrib\ProxySourceCollection\ProxySourceItem;
|
||||
|
Loading…
Reference in a new issue