-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop
abstract static
methods [ch4671] #40
* use different php versions from Travis * disable master-only travis build * Use php7 in Dockerfile and update Tests namespace * Trigger Travis build * Travis before_script * Fixed Call to undefined method ClientTest::setExpectedException() in phpunit 6 * Removed abstract static method, testing in php 5 & 7, code formatting * class alias
- Loading branch information
Showing
30 changed files
with
453 additions
and
70 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,2 +1 @@ | ||
/coverage export-ignore | ||
|
||
/coverage export-ignore php.ini |
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,11 +1,12 @@ | ||
sudo: required | ||
language: php | ||
php: | ||
- '5.5' | ||
- '5.6' | ||
- '7.2' | ||
- nightly | ||
|
||
services: | ||
- docker | ||
before_script: | ||
- composer install | ||
|
||
script: | ||
- make test | ||
|
||
branches: | ||
only: | ||
- master | ||
- 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 |
---|---|---|
@@ -1,6 +1,14 @@ | ||
FROM php:5.5.37-fpm | ||
ARG VERSION | ||
FROM php:${VERSION} | ||
RUN curl -O https://getcomposer.org/composer.phar | ||
RUN mv composer.phar /usr/local/bin/composer | ||
RUN chmod a+x /usr/local/bin/composer | ||
RUN pecl install xdebug-2.5.5 && docker-php-ext-enable xdebug | ||
RUN apt-get update && apt-get install -y git unzip | ||
ARG VERSION | ||
RUN if [ "$VERSION" = "7.2" ]; then \ | ||
composer global require phpunit/phpunit:^7 && pecl install xdebug-2.7.0alpha1; else \ | ||
composer global require phpunit/phpunit:^4 && pecl install xdebug-2.5.5; fi | ||
RUN docker-php-ext-enable xdebug | ||
RUN composer global require hirak/prestissimo | ||
ENV PATH="${PATH}:/root/.composer/vendor/bin" | ||
COPY php.ini /usr/local/etc/php/ |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
error_reporting = E_ALL |
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
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
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,24 +1,24 @@ | ||
<?php | ||
|
||
namespace ChartMogul\LineItems; | ||
|
||
/** | ||
* @codeCoverageIgnore | ||
* @property-read string $uuid | ||
*/ | ||
abstract class AbstractLineItem extends \ChartMogul\Resource\AbstractModel | ||
{ | ||
|
||
protected $uuid; | ||
|
||
public $type; | ||
public $amount_in_cents; | ||
public $quantity; | ||
public $discount_amount_in_cents; | ||
public $discount_code; | ||
public $tax_amount_in_cents; | ||
public $transaction_fees_in_cents; | ||
public $external_id; | ||
|
||
public $invoice_uuid; | ||
} | ||
<?php | ||
|
||
namespace ChartMogul\LineItems; | ||
|
||
/** | ||
* @codeCoverageIgnore | ||
* @property-read string $uuid | ||
*/ | ||
abstract class AbstractLineItem extends \ChartMogul\Resource\AbstractModel | ||
{ | ||
|
||
protected $uuid; | ||
|
||
public $type; | ||
public $amount_in_cents; | ||
public $quantity; | ||
public $discount_amount_in_cents; | ||
public $discount_code; | ||
public $tax_amount_in_cents; | ||
public $transaction_fees_in_cents; | ||
public $external_id; | ||
|
||
public $invoice_uuid; | ||
} |
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
Oops, something went wrong.