Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
a947ec4
main branch
Feb 24, 2025
aec41d0
implemented the unit tests for authentication and objects
Feb 24, 2025
5a89641
fixed the CI and Psalm
Feb 24, 2025
9c84675
fixed the CI and Psalm show-infor errors
Feb 24, 2025
fda7a1b
removed PersonUnitTest
Feb 24, 2025
ca125bf
implemented unit test
Feb 25, 2025
147b17a
DEBUG
Feb 27, 2025
a4d171f
DEBUG
Feb 27, 2025
ae085cf
enabled the mocking of final classes in PHPUnit
Feb 27, 2025
a7df996
enabled the mocking of final classes in PHPUnit
Feb 27, 2025
ec7693a
Debug
Feb 27, 2025
e5fc522
Debug
Feb 27, 2025
f256ec6
Removed the getters from resultCounters
Feb 27, 2025
30d31a7
updated the TransactionUnitTest
Feb 27, 2025
3b3eae0
fixed integration test for resultcounters
Feb 27, 2025
60f2f7d
fixed integration test
Feb 27, 2025
f093b16
fixed integration test
Feb 27, 2025
ae425ed
updated tests
Feb 27, 2025
e00b7d8
resolved conflicts
Feb 27, 2025
6db361a
seperated all integration tests
Feb 27, 2025
63a96ab
removed all the final keyword
pratikshazalte69 Feb 28, 2025
379ec73
DEBUG
pratikshazalte69 Feb 28, 2025
3ac6243
resolved changes according to comments
pratikshazalte69 Feb 28, 2025
78b3ad0
resolved changes
pratikshazalte69 Feb 28, 2025
3179ea9
invalidbooktest is created
123kiran17 Feb 28, 2025
f9d34da
Added unit test for ResultRow
pratikshazalte69 Feb 28, 2025
13fc352
chore: remove invalid import
123kiran17 Feb 28, 2025
c0d5bd7
Merge branch 'main' into invalidbookmarktest
123kiran17 Feb 28, 2025
8d96f84
psalm info issues are fixed
123kiran17 Feb 28, 2025
829e957
Added unit test for ResultRow
pratikshazalte69 Feb 28, 2025
1019823
Added unit test for ResultRow
pratikshazalte69 Feb 28, 2025
eac8354
Added final keyword
pratikshazalte69 Feb 28, 2025
12ba09a
fixed broken test and added schema for phpunit.xml
123kiran17 Feb 28, 2025
2c7ce6c
Merge remote-tracking branch 'origin/main' into invalidbookmarktest
123kiran17 Feb 28, 2025
dc88213
updated README.md
123kiran17 Feb 28, 2025
e8cd214
Added final keyword to all neccesary classes
pratikshazalte69 Feb 28, 2025
b48d977
minor errors
123kiran17 Feb 28, 2025
c3484e7
propertynotsetinconstructor is removed
123kiran17 Feb 28, 2025
166abee
Merge remote-tracking branch 'origin/main' into add-unit-tests-197459…
transistive Feb 28, 2025
762f5cb
Merge remote-tracking branch 'origin/invalidbookmarktest' into add-un…
transistive Feb 28, 2025
9a13ccc
fixed all warnings
transistive Feb 28, 2025
57307b0
add coverage options
transistive Feb 28, 2025
f0d214d
explicitly mark test folder in phpunit tests
transistive Feb 28, 2025
30916ba
remove coverage filter from phpunit xml
transistive Feb 28, 2025
26da2a2
winp
pratikshazalte69 Mar 3, 2025
c1ba3cf
Deprecations fixed
pratikshazalte69 Mar 3, 2025
6635290
Deprecations fixed
pratikshazalte69 Mar 3, 2025
2f744a0
added a new phunitCoverage.xml file for generating a code coverage re…
pratikshazalte69 Mar 3, 2025
a196b99
added a new phunitCoverage.xml file for generating a code coverage re…
pratikshazalte69 Mar 3, 2025
493aea5
removed phunit.cache file and xml-coverage folder
pratikshazalte69 Mar 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .github/workflows/psalm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,15 @@ jobs:
run: composer install --no-progress --prefer-dist

- name: Run Psalm
run: vendor/bin/psalm --output-format=github
run: vendor/bin/psalm --show-info=true --output-format=github

- name: Run Psalm
id: psalm
run: |
# Run Psalm and use tee to print output and save it to psalm.log
vendor/bin/psalm --no-cache --show-info=true --output-format=github | tee psalm.log || true
# If any warnings are found, print a message and exit with a failure code
if grep -q "warning" psalm.log; then
echo "Warnings detected in Psalm output. Failing build."
exit 1
fi
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ jobs:
NEO4J_ADDRESS: "http://localhost:7474"
NEO4J_USERNAME: "neo4j"
NEO4J_PASSWORD: "password"
run: vendor/bin/phpunit --configuration phpunit.dist.xml
run: vendor/bin/phpunit --configuration phpunit.dist.xml ./tests
2 changes: 1 addition & 1 deletion .github/workflows/testaura.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ jobs:
NEO4J_ADDRESS: ${{ secrets.NEO4J_ADDRESS }}
NEO4J_USERNAME: ${{ secrets.NEO4J_USERNAME }}
NEO4J_PASSWORD: ${{ secrets.NEO4J_PASSWORD }}
run: vendor/bin/phpunit --configuration phpunit.dist.xml
run: vendor/bin/phpunit --configuration phpunit.dist.xml ./tests
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ test
#PHP-CS-FIXER
.php-cs-fixer.php
.php-cs-fixer.cache

.phpunit.cache

coverage

xml-coverage
composer.lock
16 changes: 13 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
# Use an official PHP image as the base image
FROM php:8.1-cli

# Install necessary extensions (e.g., for Composer)
RUN apt-get update && apt-get install -y libpng-dev libjpeg-dev libfreetype6-dev git libzip-dev zip \
RUN apt-get update && \
apt-get install -y \
libpng-dev \
libjpeg-dev \
libfreetype6-dev \
git \
libzip-dev \
zip \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install gd zip

RUN pecl install xdebug pcov && docker-php-ext-enable xdebug pcov

# Configure Xdebug for coverage
# RUN echo "xdebug.mode=coverage" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini

# Set working directory
WORKDIR /var/www

# Copy the composer.phar file to the container
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
529 changes: 529 additions & 0 deletions clover.xml

Large diffs are not rendered by default.

Loading