-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #281 from thebatclaudio/fix/fix-failing-tests
Fix failing tests and update phpunit.xml
- Loading branch information
Showing
3 changed files
with
52 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit backupGlobals="false" | ||
backupStaticAttributes="false" | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
backupGlobals="false" | ||
bootstrap="tests/bootstrap.php" | ||
colors="true" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
processIsolation="false" | ||
stopOnFailure="false"> | ||
stopOnFailure="false" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" | ||
cacheDirectory=".phpunit.cache" | ||
backupStaticProperties="false"> | ||
<testsuites> | ||
<testsuite name="Application Test Suite"> | ||
<directory>./tests/</directory> | ||
</testsuite> | ||
</testsuites> | ||
<filter> | ||
<whitelist processUncoveredFilesFromWhitelist="true"> | ||
<source> | ||
<include> | ||
<directory suffix=".php">./src/</directory> | ||
</whitelist> | ||
</filter> | ||
</include> | ||
</source> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
|
||
namespace BaoPham\DynamoDb\Tests\Mocks; | ||
|
||
use Aws\DynamoDb\DynamoDbClient; | ||
use Aws\Result; | ||
|
||
class DynamoDbClientMock extends DynamoDbClient | ||
{ | ||
public function putItem(array $args = []): Result | ||
{ | ||
return parent::putItem($args); | ||
} | ||
|
||
public function updateItem(array $args = []): Result | ||
{ | ||
return parent::updateItem($args); | ||
} | ||
|
||
public function deleteItem(array $args = []): Result | ||
{ | ||
return parent::deleteItem($args); | ||
} | ||
|
||
public function scan(array $args = []): Result | ||
{ | ||
return parent::scan($args); | ||
} | ||
|
||
public function query(array $args = []): Result | ||
{ | ||
return parent::query($args); | ||
} | ||
|
||
public function batchWriteItem(array $args = []): Result | ||
{ | ||
return parent::batchWriteItem($args); | ||
} | ||
} |