-
Notifications
You must be signed in to change notification settings - Fork 44
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 #51 from CobraSphere/updated-for-php8
Updated for PHP 8. Tested most with Unit Tests.
- Loading branch information
Showing
9 changed files
with
47 additions
and
14 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 |
---|---|---|
|
@@ -3,4 +3,5 @@ vendor | |
nbproject/* | ||
.idea | ||
composer.lock | ||
build | ||
build | ||
.phpunit.result.cache |
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 |
---|---|---|
@@ -1,16 +1,15 @@ | ||
<phpunit bootstrap="tests/bootstrap.php" | ||
colors="true" | ||
stopOnFailure="false"> | ||
<?xml version="1.0"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="tests/bootstrap.php" colors="true" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"> | ||
<coverage/> | ||
<testsuites> | ||
<testsuite name="client"> | ||
<directory>tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<logging> | ||
<log type="tap" target="build/report.tap"/> | ||
<log type="junit" target="build/report.junit.xml"/> | ||
<junit outputFile="build/report.junit.xml"/> | ||
<!-- <log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true"/> | ||
<log type="coverage-text" target="build/coverage.txt"/> | ||
<log type="coverage-clover" target="build/logs/clover.xml"/> --> | ||
</logging> | ||
</phpunit> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<phpunit bootstrap="tests/bootstrap.php" | ||
colors="true" | ||
stopOnFailure="false"> | ||
<testsuites> | ||
<testsuite name="client"> | ||
<directory>tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<logging> | ||
<log type="tap" target="build/report.tap"/> | ||
<log type="junit" target="build/report.junit.xml"/> | ||
<!-- <log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true"/> | ||
<log type="coverage-text" target="build/coverage.txt"/> | ||
<log type="coverage-clover" target="build/logs/clover.xml"/> --> | ||
</logging> | ||
</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
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
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,4 +1,21 @@ | ||
<?php | ||
|
||
require_once __DIR__ . '/../vendor/autoload.php'; | ||
|
||
define('API_KEY', 'fc7b8c5b32067bcd47cafb5f475d2fe9'); // demo account | ||
// demo account | ||
define('API_KEY', 'fc7b8c5b32067bcd47cafb5f475d2fe9'); | ||
define('BATCH_TEST_EMAIL1', 'one@batch.com'); | ||
define('BATCH_TEST_EMAIL2', 'two@batch.com'); | ||
define('SUBSCRIBERS_TEST_EMAIL1', 'demo@mailerlite.com'); | ||
define('CAMPAIGNS_TEST_GROUP1', 2984475); | ||
define('CAMPAIGNS_TEST_GROUP2', 3237221); | ||
define('SEGMENTS_TEST_NAME1', 'Demo segment'); | ||
|
||
// other account (other devs) (adapt below as required) | ||
// define('API_KEY', 'XXX'); | ||
// define('BATCH_TEST_EMAIL1', 'email.one@example.com'); | ||
// define('BATCH_TEST_EMAIL2', 'email.two@example.com'); | ||
// define('SUBSCRIBERS_TEST_EMAIL1', 'subscriber.one@example.com'); | ||
// define('CAMPAIGNS_TEST_GROUP1', 000000000); | ||
// define('CAMPAIGNS_TEST_GROUP2', 000000000); | ||
// define('SEGMENTS_TEST_NAME1', 'SDK Test'); |