Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
# Use an official PHP image as the base image
FROM php:8.1-cli
FROM php:8.2-fpm

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

# Set working directory
WORKDIR /var/www

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

# Expose PHP-FPM port
EXPOSE 9000

# Start PHP-FPM server
CMD ["php-fpm"]
14 changes: 7 additions & 7 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,24 @@ services:
context: .
dockerfile: Dockerfile
container_name: php-app
working_dir: /var/www
volumes:
- .:/var/www
networks:
- mynetwork
ports:
- "9000:9000" # Exposing port for PHP-FPM

# Composer Service
composer:
image: composer:latest
container_name: composer
volumes:
- .:/var/www
working_dir: /var/www
networks:
- mynetwork
command: ["install", "--no-progress", "--prefer-dist"]

# Neo4j Service (Optional, if you need Neo4j)
neo4j:
Expand Down
2 changes: 1 addition & 1 deletion src/ResponseParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use Neo4j\QueryAPI\Objects\ProfiledQueryPlan;
use Neo4j\QueryAPI\Objects\Point;

final class ResponseParser
class ResponseParser
{
public function __construct(private readonly OGM $ogm)
{
Expand Down
5 changes: 1 addition & 4 deletions tests/Unit/Neo4jQueryAPIUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
use Psr\Http\Message\StreamInterface;
use RuntimeException;
use Neo4j\QueryAPI\Configuration;
use Neo4j\QueryAPI\ResponseParserInterface;

/**
* @api
Expand Down Expand Up @@ -47,10 +48,6 @@ protected function setUp(): void
$this->parser = new ResponseParser($this->ogm);
}





public function testCorrectClientSetup(): void
{
$neo4jQueryAPI = Neo4jQueryAPI::login($this->address, Authentication::fromEnvironment());
Expand Down