Add phpUnit testing for Amazon Incentives class

This commit is contained in:
2022-06-13 18:09:52 +09:00
parent 05b33ac157
commit 2bcd42f4a5
15 changed files with 1665 additions and 55 deletions

View File

@@ -7,6 +7,7 @@ $baseDir = dirname($vendorDir);
return array(
'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
'DG\\BypassFinals' => $vendorDir . '/dg/bypass-finals/src/BypassFinals.php',
'PHPUnit\\Exception' => $vendorDir . '/phpunit/phpunit/src/Exception.php',
'PHPUnit\\Framework\\ActualValueIsNotAnObjectException' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/ActualValueIsNotAnObjectException.php',
'PHPUnit\\Framework\\Assert' => $vendorDir . '/phpunit/phpunit/src/Framework/Assert.php',

View File

@@ -76,6 +76,7 @@ class ComposerStaticInit0c8f6bec90a6d60040a922f19a1f0e64
public static $classMap = array (
'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
'DG\\BypassFinals' => __DIR__ . '/..' . '/dg/bypass-finals/src/BypassFinals.php',
'PHPUnit\\Exception' => __DIR__ . '/..' . '/phpunit/phpunit/src/Exception.php',
'PHPUnit\\Framework\\ActualValueIsNotAnObjectException' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Exception/ActualValueIsNotAnObjectException.php',
'PHPUnit\\Framework\\Assert' => __DIR__ . '/..' . '/phpunit/phpunit/src/Framework/Assert.php',

View File

@@ -1,5 +1,62 @@
{
"packages": [
{
"name": "dg/bypass-finals",
"version": "dev-master",
"version_normalized": "dev-master",
"source": {
"type": "git",
"url": "https://github.com/dg/bypass-finals.git",
"reference": "fb62dc6ab1a097e234fa1567943d8e87ea4d0842"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/dg/bypass-finals/zipball/fb62dc6ab1a097e234fa1567943d8e87ea4d0842",
"reference": "fb62dc6ab1a097e234fa1567943d8e87ea4d0842",
"shasum": ""
},
"require": {
"php": ">=7.1"
},
"require-dev": {
"nette/tester": "^2.3",
"phpstan/phpstan": "^0.12"
},
"time": "2022-04-14T12:24:34+00:00",
"default-branch": true,
"type": "library",
"installation-source": "dist",
"autoload": {
"classmap": [
"src/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause",
"GPL-2.0",
"GPL-3.0"
],
"authors": [
{
"name": "David Grudl",
"homepage": "https://davidgrudl.com"
}
],
"description": "Removes final keyword from source code on-the-fly and allows mocking of final methods and classes",
"keywords": [
"finals",
"mocking",
"phpunit",
"testing",
"unit"
],
"support": {
"issues": "https://github.com/dg/bypass-finals/issues",
"source": "https://github.com/dg/bypass-finals/tree/master"
},
"install-path": "../dg/bypass-finals"
},
{
"name": "doctrine/instantiator",
"version": "1.5.x-dev",
@@ -2184,6 +2241,7 @@
],
"dev": true,
"dev-package-names": [
"dg/bypass-finals",
"doctrine/instantiator",
"gullevek/dotenv",
"myclabs/deep-copy",

View File

@@ -5,11 +5,22 @@
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
'reference' => '1e836e9a2bd6e41c4555cf917fe645b453cb5b79',
'reference' => 'fd5477269b9a133448cecb5854b784033d6c6c62',
'name' => 'gullevek/amazon-incentives',
'dev' => true,
),
'versions' => array(
'dg/bypass-finals' => array(
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'type' => 'library',
'install_path' => __DIR__ . '/../dg/bypass-finals',
'aliases' => array(
0 => '9999999-dev',
),
'reference' => 'fb62dc6ab1a097e234fa1567943d8e87ea4d0842',
'dev_requirement' => true,
),
'doctrine/instantiator' => array(
'pretty_version' => '1.5.x-dev',
'version' => '1.5.9999999.9999999-dev',
@@ -25,7 +36,7 @@
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
'reference' => '1e836e9a2bd6e41c4555cf917fe645b453cb5b79',
'reference' => 'fd5477269b9a133448cecb5854b784033d6c6c62',
'dev_requirement' => false,
),
'gullevek/dotenv' => array(