Skip to content

Commit a947ec4

Browse files
PratikshaPratiksha
authored andcommitted
main branch
1 parent 508554e commit a947ec4

File tree

3 files changed

+19
-9
lines changed

3 files changed

+19
-9
lines changed

Dockerfile

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,23 @@
11
# Use an official PHP image as the base image
22
FROM php:8.1-cli
33

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 \
612
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
713
&& docker-php-ext-install gd zip
814

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+
920
# Set working directory
1021
WORKDIR /var/www
1122

12-
# Copy the composer.phar file to the container
1323
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer

phpunit.dist.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
</testsuite>
88
</testsuites>
99

10+
<coverage processUncoveredFiles="true">
11+
<include>
12+
<directory suffix=".php">src</directory>
13+
</include>
14+
</coverage>
15+
1016
<!--
1117
&lt;!&ndash; Logging &ndash;&gt;
1218
<logging>

src/Objects/Authentication.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ class Authentication
1414
{
1515
public static function basic(string $username, string $password): AuthenticateInterface
1616
{
17-
$username = $username ?: 'defaultUsername';
18-
$password = $password ?: 'defaultPassword';
19-
2017
return new BasicAuthentication($username, $password);
2118
}
2219

@@ -32,9 +29,6 @@ public static function fromEnvironment(): AuthenticateInterface
3229
);
3330
}
3431

35-
36-
37-
3832
public static function noAuth(): AuthenticateInterface
3933
{
4034
return new NoAuth();

0 commit comments

Comments
 (0)