# Tests

### Introduction

Hi developers!

Welcome to the bunq PHP SDK integration tests. Currently we are not targeting the 100% test coverage, but rather want to be certain that the most common scenarios can run without any errors.

### Setup

First create a certificate and key using this command. Change "Your App Id" to a unique id.

```
openssl req -x509 -newkey rsa:4096 -keyout tests/resource/key.pem -out tests/resource/certificate.cert -days 365 -nodes -subj '/CN=Your App Id/C=NL'
```

### Execution

You can run the tests via command line:

```
vendor/phpunit/phpunit/phpunit
```

or via PhpStorm, but first you must configure PhpStorm by doing the following:

* Got to preferences --> Language and Frameworks --> Php --> Test Frameworks and add`sdk_php/vendor/autoload.php` as path to script with `use composer autoloader` checked.

Afterwards you can right click on the tests folders and should be able to run\
the tests cases form the IDE.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.bunq.com/getting-started/tools/unmaintained-software-development-kits-sdks/php/tests.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
