Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Korbeil committed Mar 14, 2024
1 parent 99b9c18 commit 9a28e03
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ jobs:
env:
SYMFONY_REQUIRE: "${{ matrix.symfony-versions }}"
- name: tests
run: vendor/bin/phpunit
run: vendor/bin/simple-phpunit
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use AutoMapper\Generator\Generator;
use AutoMapper\Transformer\ChainTransformerFactory;
use AutoMapper\Transformer\CustomTransformer\CustomTransformerFactory;
use AutoMapper\Transformer\CustomTransformer\CustomTransformerInterface;
use AutoMapper\Transformer\CustomTransformer\CustomTransformersRegistry;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
Expand Down
16 changes: 1 addition & 15 deletions tests/Resources/App/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
use AutoMapper\Bundle\Tests\Fixtures\UserDTO;
use AutoMapper\MapperGeneratorMetadataInterface;
use AutoMapper\MapperMetadata;
use AutoMapper\Transformer\CustomTransformer\CustomModelTransformer;
use AutoMapper\Transformer\CustomTransformer\CustomModelTransformerInterface;
use AutoMapper\Transformer\CustomTransformer\CustomPropertyTransformerInterface;
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
Expand All @@ -40,22 +38,11 @@ public function registerBundles(): array
return $bundles;
}

private function configureRoutes(RoutingConfigurator $routes): void
{
$route = new Route('/', ['_controller' => 'kernel::indexAction']);
$routes->collection->add('index_action', $route);
}

protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader): void
{
$loader->load(__DIR__ . '/config.yml');
}

public function indexAction(): Response
{
return new Response();
}

public function getProjectDir(): string
{
return __DIR__ . '/..';
Expand All @@ -67,7 +54,7 @@ class YearOfBirthTransformer implements CustomPropertyTransformerInterface
{
public function transform(object|array $user): mixed
{
assert($user instanceof User);
\assert($user instanceof User);

return ((int) date('Y')) - ((int) $user->age);
}
Expand All @@ -80,7 +67,6 @@ public function supports(string $source, string $target, string $propertyName):

class UserMapperConfiguration
{

}
} else {
class UserMapperConfiguration implements MapperConfigurationInterface
Expand Down

0 comments on commit 9a28e03

Please sign in to comment.