File tree Expand file tree Collapse file tree 3 files changed +19
-9
lines changed Expand file tree Collapse file tree 3 files changed +19
-9
lines changed Original file line number Diff line number Diff line change 1
1
# Use an official PHP image as the base image
2
2
FROM php:8.1-cli
3
3
4
- # Install necessary extensions (e.g., for Composer)
5
- RUN apt-get update && apt-get install -y libpng-dev libjpeg-dev libfreetype6-dev git libzip-dev zip \
4
+ RUN apt-get update && \
5
+ apt-get install -y \
6
+ libpng-dev \
7
+ libjpeg-dev \
8
+ libfreetype6-dev \
9
+ git \
10
+ libzip-dev \
11
+ zip \
6
12
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
7
13
&& docker-php-ext-install gd zip
8
14
15
+ RUN pecl install xdebug pcov && docker-php-ext-enable xdebug pcov
16
+
17
+ # Configure Xdebug for coverage
18
+ # RUN echo "xdebug.mode=coverage" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
19
+
9
20
# Set working directory
10
21
WORKDIR /var/www
11
22
12
- # Copy the composer.phar file to the container
13
23
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
Original file line number Diff line number Diff line change 7
7
</testsuite >
8
8
</testsuites >
9
9
10
+ <coverage processUncoveredFiles =" true" >
11
+ <include >
12
+ <directory suffix =" .php" >src</directory >
13
+ </include >
14
+ </coverage >
15
+
10
16
<!--
11
17
<!– Logging –>
12
18
<logging>
Original file line number Diff line number Diff line change @@ -14,9 +14,6 @@ class Authentication
14
14
{
15
15
public static function basic (string $ username , string $ password ): AuthenticateInterface
16
16
{
17
- $ username = $ username ?: 'defaultUsername ' ;
18
- $ password = $ password ?: 'defaultPassword ' ;
19
-
20
17
return new BasicAuthentication ($ username , $ password );
21
18
}
22
19
@@ -32,9 +29,6 @@ public static function fromEnvironment(): AuthenticateInterface
32
29
);
33
30
}
34
31
35
-
36
-
37
-
38
32
public static function noAuth (): AuthenticateInterface
39
33
{
40
34
return new NoAuth ();
You can’t perform that action at this time.
0 commit comments