Skip to content

Commit

Permalink
added boodstrap file
Browse files Browse the repository at this point in the history
  • Loading branch information
DonutsNL committed Nov 15, 2023
1 parent 1b606ef commit 3e9c9c7
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ jobs:
- run: pwd
- uses: php-actions/composer@v6
- run: echo "Composer dependencies have been installed"
- run: vendor/bin/phpunit ./tests/ticketFilterTest.php
- run: vendor/bin/phpunit --bootstrap ./tests/bootstrap.php ./tests/ticketFilterTest.php


3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@
],
"require-dev": {
"symfony/test-pack": "^1.1"
},
"autoload": {
"psr-4": {"GlpiPlugin\\Ticketfilter\\": "src/"}
}
}
7 changes: 7 additions & 0 deletions tests/ticketFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,15 @@
use Symfony\Component\Messenger\Envelope;
use Symfony\Component\Messenger\MessageBusInterface;

use GlpiPlugin\Ticketfilter;

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

public function testWithoutDelay()
{
$this->assertNull(null);
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},"times":{"tests\\matchesTest::testWithoutDelay":0.005,"tests\\ticketFilterTest::testWithoutDelay":0.005}}
{"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}}
1 change: 1 addition & 0 deletions vendor/composer/autoload_psr4.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
'Symfony\\Bridge\\PhpUnit\\' => array($vendorDir . '/symfony/phpunit-bridge'),
'PhpParser\\' => array($vendorDir . '/nikic/php-parser/lib/PhpParser'),
'Masterminds\\' => array($vendorDir . '/masterminds/html5/src'),
'GlpiPlugin\\Ticketfilter\\' => array($baseDir . '/src'),
'Doctrine\\Instantiator\\' => array($vendorDir . '/doctrine/instantiator/src/Doctrine/Instantiator'),
'DeepCopy\\' => array($vendorDir . '/myclabs/deep-copy/src/DeepCopy'),
);
8 changes: 8 additions & 0 deletions vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ class ComposerStaticInit8a12cb57e3eb97f4aa6da10e056269a3
array (
'Masterminds\\' => 12,
),
'G' =>
array (
'GlpiPlugin\\Ticketfilter\\' => 24,
),
'D' =>
array (
'Doctrine\\Instantiator\\' => 22,
Expand Down Expand Up @@ -72,6 +76,10 @@ class ComposerStaticInit8a12cb57e3eb97f4aa6da10e056269a3
array (
0 => __DIR__ . '/..' . '/masterminds/html5/src',
),
'GlpiPlugin\\Ticketfilter\\' =>
array (
0 => __DIR__ . '/../..' . '/src',
),
'Doctrine\\Instantiator\\' =>
array (
0 => __DIR__ . '/..' . '/doctrine/instantiator/src/Doctrine/Instantiator',
Expand Down

0 comments on commit 3e9c9c7

Please sign in to comment.