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