Skip to content

Commit

Permalink
Merge pull request #715 from tienvx/add-use-statements
Browse files Browse the repository at this point in the history
docs: Add use statements
  • Loading branch information
tienvx authored Jan 9, 2025
2 parents 64ab413 + d317b58 commit 48e8fa3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ You can run these code (once) before running tests:

```php
use PhpPact\Log\Logger;
use PhpPact\Log\Enum\LogLevel;
use PhpPact\Log\Model\File;
use PhpPact\Log\Model\Buffer;
use PhpPact\Log\Model\Stdout;
use PhpPact\Log\Model\Stderr;

$logger = Logger::instance();
$logger->attach(new File('/path/to/file', LogLevel::DEBUG));
$logger->attach(new Buffer(LogLevel::ERROR));
Expand Down Expand Up @@ -56,13 +62,17 @@ Consumer:

```php
use PhpPact\Standalone\MockService\MockServerConfig;

$config = new VerifierConfig();
$config->setLogLevel('DEBUG');
```

Provider:

```php
use PhpPact\Standalone\ProviderVerifier\Model\VerifierConfig;

$config = new VerifierConfig();
$config->setLogLevel('DEBUG');
```

Expand Down

0 comments on commit 48e8fa3

Please sign in to comment.