Commit c814ab80 authored by Bas de Nooijer's avatar Bas de Nooijer

Merge pull request #312 from basdenooijer/develop

Merging pull requests into develop
parents 21b919dd 4ea1f324
...@@ -19,7 +19,7 @@ before_script: ...@@ -19,7 +19,7 @@ before_script:
- bash -c "if [ $TRAVIS_PHP_VERSION != 'hhvm' ] && [ $TRAVIS_PHP_VERSION != 'hhvm-nightly' ] && [ $TRAVIS_PHP_VERSION != '5.3' ]; then printf '\n\n\n\n' | pecl install pecl_http-1.7.6; fi" - bash -c "if [ $TRAVIS_PHP_VERSION != 'hhvm' ] && [ $TRAVIS_PHP_VERSION != 'hhvm-nightly' ] && [ $TRAVIS_PHP_VERSION != '5.3' ]; then printf '\n\n\n\n' | pecl install pecl_http-1.7.6; fi"
- composer require --prefer-source --dev symfony/event-dispatcher:${SYMFONY_VERSION} - composer require --prefer-source --dev symfony/event-dispatcher:${SYMFONY_VERSION}
script: composer test script: vendor/bin/phpunit -c phpunit.xml.travis -v
after_script: vendor/bin/coveralls -v after_script: vendor/bin/coveralls -v
......
# CHANGELOG
## 3.3.0 - 2014-11-16
- improvement: fixes in build.xml (use phpunit in vendor directory)
- improvement: added support for nested debug-info in the debug query
- new feature: added support for data fixtures
- improvement: filter control characters in update documents by default
- bugfix: pivot facet does not accept extra parameters
- improvement: Facet range now supports the mincount parameter
- improvement: Spellcheck response parser can now handle multiple suggestions
- bugfix: Pivot facet uses the wrong key in result parsing
- bugfix: Wrong handling of boolean values in update documents
- improvement: Removed constructor from interface Solarium/Core/ConfigurableInterface.php
- improvement: Prefetch iterator now resets if prefetch or query settings are changed
- improvement: Added matchoffset setting to MLT querytype
- bugfix: Highlight query should only set hl.fl param if there are any fields set
- bugfix: Curl crash when open_basedir is set
- improvement: PreFetchIterator plugin now supports setting an endpoint
- improvement: BufferedAdd plugin now supports an endpoint supplied as a config
- improvement: Updated curl adapter file handling to prevent warnings in php >=5.5.0
- improvement: Added remote file streaming support to extract request handler
- improvement: Query result now also supports maxscore
- new feature: Added MinimumScoreFilter plugin, also for grouping
- improvement: MoreLikeThis now allows for individual boosts on query fields
- bugfix: Fix suggester parser with duplicates
- improvement: Select query component MoreLikeThis now supports boosting multiple fields
- improvement: added PHP 5.5, 5.6 and HHVM to Travis config
- improvement: Solarium now uses Coveralls for test coverage reports
- improvement: if a config object does not supply a toArray method, the object is converted by Solarium
- improvement: Highlighting now supports hl.preserveMulti param
- improvement: Stats component now supports exludes
- improvement: Range query helper now supports wildcards
- improvement: Support HTTPS scheme for endpoints
- improvement: CURL and PECL_HTTP adapters now set connection timeout and dns cache timeout
- improvement: Extract query now supports ExtractOnly
- improvement: The event dispatcher can now be injected
- improvement: PSR-0 and PSR-2 code fixes
...@@ -49,4 +49,3 @@ http://wiki.solarium-project.org/index.php/V3:Installation#Getting_Solarium ...@@ -49,4 +49,3 @@ http://wiki.solarium-project.org/index.php/V3:Installation#Getting_Solarium
* Develop branch [![Coverage Status](https://coveralls.io/repos/solariumphp/solarium/badge.png?branch=develop)](https://coveralls.io/r/solariumphp/solarium?branch=develop) * Develop branch [![Coverage Status](https://coveralls.io/repos/solariumphp/solarium/badge.png?branch=develop)](https://coveralls.io/r/solariumphp/solarium?branch=develop)
* Master branch [![Develop build status](https://secure.travis-ci.org/solariumphp/solarium.png?branch=master)](http://travis-ci.org/solariumphp/solarium) * Master branch [![Develop build status](https://secure.travis-ci.org/solariumphp/solarium.png?branch=master)](http://travis-ci.org/solariumphp/solarium)
* Master branch [![Coverage Status](https://coveralls.io/repos/solariumphp/solarium/badge.png?branch=master)](https://coveralls.io/r/solariumphp/solarium?branch=master) * Master branch [![Coverage Status](https://coveralls.io/repos/solariumphp/solarium/badge.png?branch=master)](https://coveralls.io/r/solariumphp/solarium?branch=master)
...@@ -26,9 +26,6 @@ ...@@ -26,9 +26,6 @@
"dev-develop": "3.3.x-dev" "dev-develop": "3.3.x-dev"
} }
}, },
"scripts": {
"test": "phpunit -c phpunit.xml.travis -v"
},
"autoload": { "autoload": {
"psr-0": { "Solarium\\": "library/" } "psr-0": { "Solarium\\": "library/" }
} }
......
...@@ -184,7 +184,7 @@ class Curl extends Configurable implements AdapterInterface ...@@ -184,7 +184,7 @@ class Curl extends Configurable implements AdapterInterface
if ($request->getFileUpload()) { if ($request->getFileUpload()) {
if (version_compare(PHP_VERSION, '5.5.0') >= 0) { if (version_compare(PHP_VERSION, '5.5.0') >= 0) {
$curlFile = curl_file_create($request->getFileUpload()); $curlFile = curl_file_create($request->getFileUpload());
curl_setopt($handler, CURLOPT_POSTFIELDS, array('content', $curlFile)); curl_setopt($handler, CURLOPT_POSTFIELDS, array('content' => $curlFile));
} else { } else {
curl_setopt($handler, CURLOPT_POSTFIELDS, array('content' => '@'.$request->getFileUpload())); curl_setopt($handler, CURLOPT_POSTFIELDS, array('content' => '@'.$request->getFileUpload()));
} }
......
...@@ -131,4 +131,14 @@ class RequestBuilderTest extends \PHPUnit_Framework_TestCase ...@@ -131,4 +131,14 @@ class RequestBuilderTest extends \PHPUnit_Framework_TestCase
$this->setExpectedException('Solarium\Exception\RuntimeException'); $this->setExpectedException('Solarium\Exception\RuntimeException');
$this->builder->build($this->query); $this->builder->build($this->query);
} }
public function testContentTypeHeader()
{
$headers = array(
'Content-Type: multipart/form-data'
);
$request = $this->builder->build($this->query);
$this->assertEquals($headers,
$request->getHeaders());
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment