Skip to content

Commit

Permalink
Configured composer autoloader
Browse files Browse the repository at this point in the history
to support glpiplugin/ticketFilter
psr4 namespaces.
  • Loading branch information
DonutsNL committed Nov 15, 2023
1 parent 364582f commit e6d74d4
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: echo "The ${{ github.repository }} repository has been cloned to the runner."
- run: ls -lart
- run: pwd
- uses: php-actions/composer@v6
- run: echo "Composer dependencies have been installed"
- run: vendor/bin/phpunit --bootstrap ./tests/bootstrap.php ./tests/ticketFilterTest.php
Expand Down
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
"symfony/test-pack": "^1.1"
},
"autoload": {
"psr-4": {"GlpiPlugin\\": "src/"}
"psr-4": {"GlpiPlugin\\": "src/"},
"classmap": [
"src/"
]
}
}
6 changes: 3 additions & 3 deletions tests/ticketFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
use Symfony\Component\Messenger\Envelope;
use Symfony\Component\Messenger\MessageBusInterface;

use GlpiPlugin\Ticketfilter;
use GlpiPlugin\Ticketfilter\TicketHandler;

class ticketFilterTest extends Testcase
{
public function testTicketFilter()
public function testTicketHandler()
{
$tf = new TicketFilter();
$tf = new TicketHandler();
}

public function testWithoutDelay()
Expand Down
2 changes: 1 addition & 1 deletion vendor/bin/.phpunit.result.cache
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":1,"defects":{"tests\\matchesTest::testWithoutDelay":3,"tests\\ticketFilterTest::testTicketFilter":4},"times":{"tests\\matchesTest::testWithoutDelay":0.005,"tests\\ticketFilterTest::testWithoutDelay":0.001,"tests\\ticketFilterTest::testTicketFilter":0.005}}
{"version":1,"defects":{"tests\\matchesTest::testWithoutDelay":3,"tests\\ticketFilterTest::testTicketFilter":4,"tests\\ticketFilterTest::testTicketHandler":5},"times":{"tests\\matchesTest::testWithoutDelay":0.005,"tests\\ticketFilterTest::testWithoutDelay":0.001,"tests\\ticketFilterTest::testTicketFilter":0.005,"tests\\ticketFilterTest::testTicketHandler":0.005}}
3 changes: 3 additions & 0 deletions vendor/composer/autoload_classmap.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@

return array(
'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
'GlpiPlugin\\Ticketfilter\\Filter' => $baseDir . '/src/Filter.php',
'GlpiPlugin\\Ticketfilter\\FilterPattern' => $baseDir . '/src/FilterPattern.php',
'GlpiPlugin\\Ticketfilter\\TicketHandler' => $baseDir . '/src/TicketHandler.php',
'PHPUnit\\Exception' => $vendorDir . '/phpunit/phpunit/src/Exception.php',
'PHPUnit\\Framework\\ActualValueIsNotAnObjectException' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/ActualValueIsNotAnObjectException.php',
'PHPUnit\\Framework\\Assert' => $vendorDir . '/phpunit/phpunit/src/Framework/Assert.php',
Expand Down
3 changes: 3 additions & 0 deletions vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ class ComposerStaticInit8a12cb57e3eb97f4aa6da10e056269a3

public static $classMap = array (
'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
'GlpiPlugin\\Ticketfilter\\Filter' => __DIR__ . '/../..' . '/src/Filter.php',
'GlpiPlugin\\Ticketfilter\\FilterPattern' => __DIR__ . '/../..' . '/src/FilterPattern.php',
'GlpiPlugin\\Ticketfilter\\TicketHandler' => __DIR__ . '/../..' . '/src/TicketHandler.php',
'PHPUnit\\Exception' => __DIR__ . '/..' . '/phpunit/phpunit/src/Exception.php',
'PHPUnit\\Framework\\ActualValueIsNotAnObjectException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Exception/ActualValueIsNotAnObjectException.php',
'PHPUnit\\Framework\\Assert' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Assert.php',
Expand Down

0 comments on commit e6d74d4

Please sign in to comment.