Skip to content

Commit fc6e938

Browse files
committed
Merge branch 'refs/heads/3.x' into development
2 parents 5698962 + 279c048 commit fc6e938

File tree

8 files changed

+58
-6
lines changed

8 files changed

+58
-6
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-22.04
1212
timeout-minutes: 10
1313

14-
name: PHP 8.1
14+
name: PHP 8.3
1515

1616
steps:
1717
- name: Checkout
@@ -20,7 +20,7 @@ jobs:
2020
- name: Setup PHP
2121
uses: shivammathur/setup-php@v2
2222
with:
23-
php-version: 8.1
23+
php-version: 8.3
2424
tools: composer
2525
coverage: xdebug
2626

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
image: registry.gitlab.com/aplus-framework/images/base:2
2+
image: registry.gitlab.com/aplus-framework/images/base:4
33

44
include:
55
- template: Security/SAST.gitlab-ci.yml

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
}
3434
],
3535
"require": {
36-
"php": ">=8.1",
37-
"aplus/debug": "^3.0"
36+
"php": ">=8.3",
37+
"aplus/debug": "^4.0"
3838
},
3939
"require-dev": {
4040
"ext-xdebug": "*",

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: "3"
22
services:
33
package:
4-
image: registry.gitlab.com/aplus-framework/images/package:2
4+
image: registry.gitlab.com/aplus-framework/images/package:4
55
container_name: package-autoload
66
working_dir: /package
77
volumes:

src/Debug/AutoloadCollection.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php declare(strict_types=1);
2+
/*
3+
* This file is part of Aplus Framework Autoload Library.
4+
*
5+
* (c) Natan Felles <[email protected]>
6+
*
7+
* For the full copyright and license information, please view the LICENSE
8+
* file that was distributed with this source code.
9+
*/
10+
namespace Framework\Autoload\Debug;
11+
12+
use Framework\Debug\Collection;
13+
14+
/**
15+
* Class AutoloadCollection.
16+
*
17+
* @package autoload
18+
*/
19+
class AutoloadCollection extends Collection
20+
{
21+
protected string $iconPath = __DIR__ . '/icons/autoload.svg';
22+
}

src/Debug/icons/autoload.svg

Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?php
2+
/*
3+
* This file is part of Aplus Framework Autoload Library.
4+
*
5+
* (c) Natan Felles <[email protected]>
6+
*
7+
* For the full copyright and license information, please view the LICENSE
8+
* file that was distributed with this source code.
9+
*/
10+
namespace Tests\Autoload\Debug;
11+
12+
use Framework\Autoload\Debug\AutoloadCollection;
13+
use PHPUnit\Framework\TestCase;
14+
15+
final class AutoloadCollectionTest extends TestCase
16+
{
17+
protected AutoloadCollection $collection;
18+
19+
protected function setUp() : void
20+
{
21+
$this->collection = new AutoloadCollection('Autoload');
22+
}
23+
24+
public function testIcon() : void
25+
{
26+
self::assertStringStartsWith('<svg ', $this->collection->getIcon());
27+
}
28+
}

tests/LocatorTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ protected function getFiles() : array
3131
{
3232
return [
3333
__DIR__ . '/AutoloaderTest.php',
34+
__DIR__ . '/Debug/AutoloadCollectionTest.php',
3435
__DIR__ . '/Debug/AutoloadCollectorTest.php',
3536
__FILE__,
3637
__DIR__ . '/PreloaderTest.php',

0 commit comments

Comments
 (0)