summaryrefslogtreecommitdiffstats
path: root/swiftmailer-upstream.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-10-16 15:28:39 +0200
committerRemi Collet <fedora@famillecollet.com>2015-10-16 15:28:39 +0200
commit4c35aa8af40d2d1249c8fca6cbdabddb11c80d3c (patch)
treecfb1362fa1d6105ac79de52e7f89e789a03ac102 /swiftmailer-upstream.patch
parentdd33a015445d2b8be8c977a4bc6aa65958b1ba3f (diff)
php-swift-Swift: 5.4.1HEADmaster
Diffstat (limited to 'swiftmailer-upstream.patch')
-rw-r--r--swiftmailer-upstream.patch80
1 files changed, 80 insertions, 0 deletions
diff --git a/swiftmailer-upstream.patch b/swiftmailer-upstream.patch
new file mode 100644
index 0000000..68611ed
--- /dev/null
+++ b/swiftmailer-upstream.patch
@@ -0,0 +1,80 @@
+From 94a0f8bffb1f6832fe97e4c9c67c4852fe55e2a3 Mon Sep 17 00:00:00 2001
+From: Christian Schmidt <cs@blackwoodseven.com>
+Date: Thu, 25 Jun 2015 21:43:00 +0200
+Subject: [PATCH] Do not assume that require_once returns an object
+
+---
+ composer.json | 5 +++++
+ tests/bootstrap.php | 3 +--
+ 2 files changed, 6 insertions(+), 2 deletions(-)
+
+diff --git a/composer.json b/composer.json
+index a7b5e44..0549006 100644
+--- a/composer.json
++++ b/composer.json
+@@ -23,6 +23,11 @@
+ "autoload": {
+ "files": ["lib/swift_required.php"]
+ },
++ "autoload-dev": {
++ "psr-0": {
++ "Swift_": "tests/unit"
++ }
++ },
+ "extra": {
+ "branch-alias": {
+ "dev-master": "5.4-dev"
+diff --git a/tests/bootstrap.php b/tests/bootstrap.php
+index 9b169b3..55538bb 100644
+--- a/tests/bootstrap.php
++++ b/tests/bootstrap.php
+@@ -1,7 +1,6 @@
+ <?php
+
+-$autoloader = require_once dirname(__DIR__).'/vendor/autoload.php';
+-$autoloader->add('Swift_', __DIR__.'/unit');
++require_once dirname(__DIR__).'/vendor/autoload.php';
+
+ set_include_path(get_include_path().PATH_SEPARATOR.dirname(__DIR__).'/lib');
+
+From 5174336501b554dce18f304af74c4440d4b78c9d Mon Sep 17 00:00:00 2001
+From: Hugo Hamon <hugo.hamon@sensiolabs.com>
+Date: Sun, 23 Aug 2015 12:09:17 +0200
+Subject: [PATCH] Added PHP 5.6, PHP 7 and HHVM to the build matrix.
+
+---
+ .travis.yml | 22 +++++++++++-----------
+ phpunit.xml.dist | 2 +-
+ tests/bootstrap.php | 5 ++++-
+ 3 files changed, 16 insertions(+), 13 deletions(-)
+
+diff --git a/phpunit.xml.dist b/phpunit.xml.dist
+index 2420586..0d3e698 100644
+--- a/phpunit.xml.dist
++++ b/phpunit.xml.dist
+@@ -32,6 +32,6 @@
+ </testsuites>
+
+ <listeners>
+- <listener class="\Mockery\Adapter\Phpunit\TestListener"></listener>
++ <listener class="Mockery\Adapter\Phpunit\TestListener"/>
+ </listeners>
+ </phpunit>
+diff --git a/tests/bootstrap.php b/tests/bootstrap.php
+index 55538bb..34f56b5 100644
+--- a/tests/bootstrap.php
++++ b/tests/bootstrap.php
+@@ -2,9 +2,12 @@
+
+ require_once dirname(__DIR__).'/vendor/autoload.php';
+
++// Disable garbage collector to prevent segfaults
++gc_disable();
++
+ set_include_path(get_include_path().PATH_SEPARATOR.dirname(__DIR__).'/lib');
+
+-\Mockery::getConfiguration()->allowMockingNonExistentMethods(false);
++Mockery::getConfiguration()->allowMockingNonExistentMethods(false);
+
+ if (is_file(__DIR__.'/acceptance.conf.php')) {
+ require_once __DIR__.'/acceptance.conf.php';