Skip to content

Commit

Permalink
fix test auto load
Browse files Browse the repository at this point in the history
  • Loading branch information
ronenlu committed Feb 26, 2024
1 parent e36ca59 commit fbcf7ae
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ jobs:
- name: Validate composer.json and composer.lock
run: composer validate
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
run: composer install --no-suggest
- name: Lint code
run: ./vendor/bin/phpcbf -n src
3 changes: 0 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,5 @@
"require-dev": {
"phpunit/phpunit": "^11",
"squizlabs/php_codesniffer": "^3"
},
"autoload": {
"psr-0": {"": "src/"}
}
}
5 changes: 3 additions & 2 deletions src/LoadEntities.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
<?php

require_once 'vendor/autoload.php';

use Doctrine\DBAL\DriverManager;
use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Platforms\MySQLPlatform;
use Doctrine\ORM\ORMSetup;
use Doctrine\ORM\Tools\SchemaTool;
use Doctrine\DBAL\Schema\PostgreSqlSchemaManager;
use Doctrine\ORM\EntityManager;
use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Schema\AbstractSchemaManager;

use Doctrine\DBAL\Schema\PostgreSqlSchemaManager;

class DialectsMapping
{
Expand Down
2 changes: 2 additions & 0 deletions tests/LoadEntitiesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

use PHPUnit\Framework\TestCase;

require_once 'vendor/autoload.php';
require "src/LoadEntities.php";


final class LoadEntitiesTest extends TestCase
{

Expand Down

0 comments on commit fbcf7ae

Please sign in to comment.