From 4625d7c3e1aa170fc5f5439ddef8dd52c07a6277 Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Tue, 14 Oct 2014 07:56:48 -0400 Subject: [PATCH] Updated dependencies. --- composer.lock | 25 ++-- vendor/autoload.php | 2 +- vendor/composer/autoload_real.php | 8 +- vendor/composer/installed.json | 115 +++++++++--------- .../.scrutinizer-ci.phpunit.xml.dist | 28 +++++ .../ocramius/proxy-manager/.scrutinizer.yml | 4 +- .../ocramius/proxy-manager/.travis.install.sh | 11 ++ vendor/ocramius/proxy-manager/.travis.yml | 10 +- vendor/ocramius/proxy-manager/LICENSE | 2 +- vendor/ocramius/proxy-manager/README.md | 15 +-- vendor/ocramius/proxy-manager/composer.json | 9 +- .../docs/lazy-loading-ghost-object.md | 2 +- vendor/ocramius/proxy-manager/phpdox.xml.dist | 2 +- vendor/ocramius/proxy-manager/phpmd.xml.dist | 2 +- .../ocramius/proxy-manager/phpunit.xml.dist | 5 +- .../src/ProxyManager/Configuration.php | 4 +- .../FileLocator/FileLocatorInterface.php | 4 +- .../Generator/MagicMethodGenerator.php | 5 + .../Generator/ParameterGenerator.php | 12 +- .../Inflector/ClassNameInflectorInterface.php | 2 +- .../MethodGenerator/Constructor.php | 2 +- .../MethodGenerator/CallInitializer.php | 8 +- .../LazyLoadingGhostGenerator.php | 10 +- .../Util/PublicScopeSimulator.php | 4 +- .../proxy-manager/tests/Bootstrap.php | 39 ------ ...nterceptorScopeLocalizerFunctionalTest.php | 2 +- .../LazyLoadingValueHolderFunctionalTest.php | 23 ++++ .../MultipleProxyGenerationTest.php | 4 +- .../Generator/MethodGeneratorTest.php | 18 +++ .../Generator/ParameterGeneratorTest.php | 18 ++- .../MethodGenerator/ConstructorTest.php | 2 +- .../AccessInterceptorScopeLocalizerTest.php | 2 +- .../ProxyManagerTestAsset/BaseInterface.php | 2 +- .../RemoteProxy/FooServiceInterface.php | 2 +- .../tests/TestConfiguration.php.dist | 19 --- ...erceptor-denies-private-property-read.phpt | 2 +- ...rceptor-denies-private-property-unset.phpt | 2 +- ...rceptor-denies-private-property-write.phpt | 2 +- ...ceptor-denies-protected-property-read.phpt | 2 +- ...eptor-denies-protected-property-unset.phpt | 2 +- ...eptor-denies-protected-property-write.phpt | 2 +- ...calizer-denies-private-property-isset.phpt | 2 +- ...ocalizer-denies-private-property-read.phpt | 4 +- ...calizer-denies-private-property-unset.phpt | 4 +- ...calizer-denies-private-property-write.phpt | 4 +- ...alizer-denies-protected-property-read.phpt | 2 +- ...lizer-denies-protected-property-unset.phpt | 2 +- ...lizer-denies-protected-property-write.phpt | 2 +- .../tests/language-feature-scripts/init.php | 2 +- ...ghost-denies-inexisting-property-read.phpt | 2 +- ...ng-ghost-denies-private-property-read.phpt | 2 +- ...g-ghost-denies-private-property-unset.phpt | 2 +- ...g-ghost-denies-private-property-write.phpt | 2 +- ...-ghost-denies-protected-property-read.phpt | 2 +- ...ghost-denies-protected-property-unset.phpt | 2 +- ...ghost-denies-protected-property-write.phpt | 2 +- ...e-holder-denies-private-property-read.phpt | 2 +- ...-holder-denies-private-property-unset.phpt | 2 +- ...-holder-denies-private-property-write.phpt | 2 +- ...holder-denies-protected-property-read.phpt | 2 +- ...older-denies-protected-property-unset.phpt | 2 +- ...older-denies-protected-property-write.phpt | 2 +- ...ing-value-holder-internal-php-classes.phpt | 4 +- ...ect-json-adapter-denies-unknow-method.phpt | 2 +- .../yaml/Symfony/Component/Yaml/Escaper.php | 8 +- .../yaml/Symfony/Component/Yaml/Inline.php | 7 +- .../yaml/Symfony/Component/Yaml/Parser.php | 30 +++-- .../Component/Yaml/Tests/DumperTest.php | 39 +++++- .../Yaml/Tests/Fixtures/YtsBasicTests.yml | 24 ++++ .../Component/Yaml/Tests/InlineTest.php | 22 +++- .../Component/Yaml/Tests/ParserTest.php | 6 +- .../yaml/Symfony/Component/Yaml/Unescaper.php | 6 +- 72 files changed, 382 insertions(+), 248 deletions(-) create mode 100644 vendor/ocramius/proxy-manager/.scrutinizer-ci.phpunit.xml.dist create mode 100644 vendor/ocramius/proxy-manager/.travis.install.sh delete mode 100644 vendor/ocramius/proxy-manager/tests/Bootstrap.php delete mode 100644 vendor/ocramius/proxy-manager/tests/TestConfiguration.php.dist diff --git a/composer.lock b/composer.lock index 036646d9256..16796f6ef41 100644 --- a/composer.lock +++ b/composer.lock @@ -137,16 +137,16 @@ }, { "name": "ocramius/proxy-manager", - "version": "0.5.1", + "version": "0.5.2", "source": { "type": "git", "url": "https://github.com/Ocramius/ProxyManager.git", - "reference": "eaaf10f9a24ffd79a3e388809f6d61f229e261bd" + "reference": "0ac0eb3e8e04c7fa75caaf1a43c5405623abf8f5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Ocramius/ProxyManager/zipball/eaaf10f9a24ffd79a3e388809f6d61f229e261bd", - "reference": "eaaf10f9a24ffd79a3e388809f6d61f229e261bd", + "url": "https://api.github.com/repos/Ocramius/ProxyManager/zipball/0ac0eb3e8e04c7fa75caaf1a43c5405623abf8f5", + "reference": "0ac0eb3e8e04c7fa75caaf1a43c5405623abf8f5", "shasum": "" }, "require": { @@ -155,7 +155,7 @@ }, "require-dev": { "ext-phar": "*", - "phpunit/phpunit": "~3.7", + "phpunit/phpunit": "~4.0", "squizlabs/php_codesniffer": "1.5.*" }, "suggest": { @@ -184,8 +184,7 @@ { "name": "Marco Pivetta", "email": "ocramius@gmail.com", - "homepage": "http://ocramius.github.com/", - "role": "Developer" + "homepage": "http://ocramius.github.com/" } ], "description": "A library providing utilities to generate, instantiate and generally operate with Object Proxies", @@ -197,7 +196,7 @@ "proxy pattern", "service proxies" ], - "time": "2014-03-12 14:00:19" + "time": "2014-09-28 14:18:11" }, { "name": "oyejorge/less.php", @@ -513,17 +512,17 @@ }, { "name": "symfony/yaml", - "version": "v2.5.4", + "version": "v2.5.5", "target-dir": "Symfony/Component/Yaml", "source": { "type": "git", "url": "https://github.com/symfony/Yaml.git", - "reference": "01a7695bcfb013d0a15c6757e15aae120342986f" + "reference": "b1dbc53593b98c2d694ebf383660ac9134d30b96" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/Yaml/zipball/01a7695bcfb013d0a15c6757e15aae120342986f", - "reference": "01a7695bcfb013d0a15c6757e15aae120342986f", + "url": "https://api.github.com/repos/symfony/Yaml/zipball/b1dbc53593b98c2d694ebf383660ac9134d30b96", + "reference": "b1dbc53593b98c2d694ebf383660ac9134d30b96", "shasum": "" }, "require": { @@ -556,7 +555,7 @@ ], "description": "Symfony Yaml Component", "homepage": "http://symfony.com", - "time": "2014-08-31 03:22:04" + "time": "2014-09-22 09:14:18" }, { "name": "zendframework/zendframework", diff --git a/vendor/autoload.php b/vendor/autoload.php index fda071db912..3d383ebdaa8 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -4,4 +4,4 @@ require_once __DIR__ . '/composer' . '/autoload_real.php'; -return ComposerAutoloaderInit787a7480744b64d80a4758b706585039::getLoader(); +return ComposerAutoloaderInit0f2072e16558438728ae5fe1a74a0c86::getLoader(); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index 731556ae499..ea9f2bfdc71 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInit787a7480744b64d80a4758b706585039 +class ComposerAutoloaderInit0f2072e16558438728ae5fe1a74a0c86 { private static $loader; @@ -19,9 +19,9 @@ class ComposerAutoloaderInit787a7480744b64d80a4758b706585039 return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInit787a7480744b64d80a4758b706585039', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInit0f2072e16558438728ae5fe1a74a0c86', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(); - spl_autoload_unregister(array('ComposerAutoloaderInit787a7480744b64d80a4758b706585039', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInit0f2072e16558438728ae5fe1a74a0c86', 'loadClassLoader')); $includePaths = require __DIR__ . '/include_paths.php'; array_push($includePaths, get_include_path()); @@ -48,7 +48,7 @@ class ComposerAutoloaderInit787a7480744b64d80a4758b706585039 } } -function composerRequire787a7480744b64d80a4758b706585039($file) +function composerRequire0f2072e16558438728ae5fe1a74a0c86($file) { require $file; } diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index a8547aea442..f75eae69138 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -468,55 +468,6 @@ ], "description": "Package containes ISPN (International Standard Product Numbers) validations such as:\n * ISSN\n * ISBN\n * ISMN\n * ISRC (International Standard Recording Code)\n * EAN8\n * EAN13\n * EAN14\n * UCC12\n * SSCC" }, - { - "name": "symfony/yaml", - "version": "v2.5.4", - "version_normalized": "2.5.4.0", - "target-dir": "Symfony/Component/Yaml", - "source": { - "type": "git", - "url": "https://github.com/symfony/Yaml.git", - "reference": "01a7695bcfb013d0a15c6757e15aae120342986f" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/Yaml/zipball/01a7695bcfb013d0a15c6757e15aae120342986f", - "reference": "01a7695bcfb013d0a15c6757e15aae120342986f", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "time": "2014-08-31 03:22:04", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.5-dev" - } - }, - "installation-source": "dist", - "autoload": { - "psr-0": { - "Symfony\\Component\\Yaml\\": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Symfony Community", - "homepage": "http://symfony.com/contributors" - }, - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - } - ], - "description": "Symfony Yaml Component", - "homepage": "http://symfony.com" - }, { "name": "zendframework/zendxml", "version": "1.0.0", @@ -841,17 +792,17 @@ }, { "name": "ocramius/proxy-manager", - "version": "0.5.1", - "version_normalized": "0.5.1.0", + "version": "0.5.2", + "version_normalized": "0.5.2.0", "source": { "type": "git", "url": "https://github.com/Ocramius/ProxyManager.git", - "reference": "eaaf10f9a24ffd79a3e388809f6d61f229e261bd" + "reference": "0ac0eb3e8e04c7fa75caaf1a43c5405623abf8f5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Ocramius/ProxyManager/zipball/eaaf10f9a24ffd79a3e388809f6d61f229e261bd", - "reference": "eaaf10f9a24ffd79a3e388809f6d61f229e261bd", + "url": "https://api.github.com/repos/Ocramius/ProxyManager/zipball/0ac0eb3e8e04c7fa75caaf1a43c5405623abf8f5", + "reference": "0ac0eb3e8e04c7fa75caaf1a43c5405623abf8f5", "shasum": "" }, "require": { @@ -860,7 +811,7 @@ }, "require-dev": { "ext-phar": "*", - "phpunit/phpunit": "~3.7", + "phpunit/phpunit": "~4.0", "squizlabs/php_codesniffer": "1.5.*" }, "suggest": { @@ -870,7 +821,7 @@ "zendframework/zend-stdlib": "To use the hydrator proxy", "zendframework/zend-xmlrpc": "To have the XmlRpc adapter (Remote Object feature)" }, - "time": "2014-03-12 14:00:19", + "time": "2014-09-28 14:18:11", "type": "library", "extra": { "branch-alias": { @@ -891,8 +842,7 @@ { "name": "Marco Pivetta", "email": "ocramius@gmail.com", - "homepage": "http://ocramius.github.com/", - "role": "Developer" + "homepage": "http://ocramius.github.com/" } ], "description": "A library providing utilities to generate, instantiate and generally operate with Object Proxies", @@ -904,5 +854,54 @@ "proxy pattern", "service proxies" ] + }, + { + "name": "symfony/yaml", + "version": "v2.5.5", + "version_normalized": "2.5.5.0", + "target-dir": "Symfony/Component/Yaml", + "source": { + "type": "git", + "url": "https://github.com/symfony/Yaml.git", + "reference": "b1dbc53593b98c2d694ebf383660ac9134d30b96" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/Yaml/zipball/b1dbc53593b98c2d694ebf383660ac9134d30b96", + "reference": "b1dbc53593b98c2d694ebf383660ac9134d30b96", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "time": "2014-09-22 09:14:18", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.5-dev" + } + }, + "installation-source": "dist", + "autoload": { + "psr-0": { + "Symfony\\Component\\Yaml\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Symfony Community", + "homepage": "http://symfony.com/contributors" + }, + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + } + ], + "description": "Symfony Yaml Component", + "homepage": "http://symfony.com" } ] diff --git a/vendor/ocramius/proxy-manager/.scrutinizer-ci.phpunit.xml.dist b/vendor/ocramius/proxy-manager/.scrutinizer-ci.phpunit.xml.dist new file mode 100644 index 00000000000..7a55711925c --- /dev/null +++ b/vendor/ocramius/proxy-manager/.scrutinizer-ci.phpunit.xml.dist @@ -0,0 +1,28 @@ +<?xml version="1.0"?> +<phpunit + bootstrap="./tests/Bootstrap.php" + colors="true" + convertErrorsToExceptions="true" + convertNoticesToExceptions="true" + convertWarningsToExceptions="true" + verbose="true" + stopOnFailure="false" + processIsolation="false" + backupGlobals="false" + syntaxCheck="true" +> + <testsuite name="ProxyManager tests"> + <directory>./tests/ProxyManagerTest</directory> + </testsuite> + <groups> + <exclude> + <group>Functional</group> + <group>Performance</group> + </exclude> + </groups> + <filter> + <whitelist addUncoveredFilesFromWhitelist="true"> + <directory suffix=".php">./src</directory> + </whitelist> + </filter> +</phpunit> diff --git a/vendor/ocramius/proxy-manager/.scrutinizer.yml b/vendor/ocramius/proxy-manager/.scrutinizer.yml index df6d207ec64..717d725bc8f 100644 --- a/vendor/ocramius/proxy-manager/.scrutinizer.yml +++ b/vendor/ocramius/proxy-manager/.scrutinizer.yml @@ -2,9 +2,11 @@ before_commands: - "composer install --no-dev --prefer-source" tools: + external_code_coverage: + timeout: 600 php_code_coverage: enabled: true - test_command: phpunit -c phpunit.xml.dist --exclude-group Functional,Performance + test_command: phpunit -c .scrutinizer-ci.phpunit.xml.dist php_code_sniffer: enabled: true config: diff --git a/vendor/ocramius/proxy-manager/.travis.install.sh b/vendor/ocramius/proxy-manager/.travis.install.sh new file mode 100644 index 00000000000..373c5efcbf7 --- /dev/null +++ b/vendor/ocramius/proxy-manager/.travis.install.sh @@ -0,0 +1,11 @@ +set -x +if [ "$TRAVIS_PHP_VERSION" = 'hhvm' ] || [ "$TRAVIS_PHP_VERSION" = 'hhvm-nightly' ] ; then + curl -sS https://getcomposer.org/installer > composer-installer.php + hhvm composer-installer.php + hhvm -v ResourceLimit.SocketDefaultTimeout=30 -v Http.SlowQueryThreshold=30000 composer.phar update --prefer-source + hhvm -v ResourceLimit.SocketDefaultTimeout=30 -v Http.SlowQueryThreshold=30000 composer.phar install --dev --prefer-source +else + composer self-update + composer update --prefer-source + composer install --dev --prefer-source +fi diff --git a/vendor/ocramius/proxy-manager/.travis.yml b/vendor/ocramius/proxy-manager/.travis.yml index bfb3ba3eee9..2191faaf1c5 100644 --- a/vendor/ocramius/proxy-manager/.travis.yml +++ b/vendor/ocramius/proxy-manager/.travis.yml @@ -7,17 +7,21 @@ php: - 5.5 - 5.6 - hhvm + - hhvm-nightly before_script: - - composer self-update - - composer update --prefer-source; composer install --dev --prefer-source; + - sh .travis.install.sh script: - ./vendor/bin/phpunit --coverage-clover ./build/logs/clover.xml --exclude-group Performance - - ./vendor/bin/phpunit ./tests/language-feature-scripts/ - php -n ./vendor/bin/phpunit --group=Performance - ./vendor/bin/phpcs --standard=PSR2 ./src/ ./tests/ matrix: allow_failures: - php: hhvm + - php: hhvm-nightly + +after_script: + - wget https://scrutinizer-ci.com/ocular.phar + - php ocular.phar code-coverage:upload --format=php-clover ./build/logs/clover.xml diff --git a/vendor/ocramius/proxy-manager/LICENSE b/vendor/ocramius/proxy-manager/LICENSE index 49adae035a2..d7f722397b6 100644 --- a/vendor/ocramius/proxy-manager/LICENSE +++ b/vendor/ocramius/proxy-manager/LICENSE @@ -16,4 +16,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file +SOFTWARE. diff --git a/vendor/ocramius/proxy-manager/README.md b/vendor/ocramius/proxy-manager/README.md index 4244f597cd8..c4848795c02 100644 --- a/vendor/ocramius/proxy-manager/README.md +++ b/vendor/ocramius/proxy-manager/README.md @@ -9,6 +9,8 @@ This library aims at providing abstraction for generating various kinds of [prox [](https://scrutinizer-ci.com/g/Ocramius/ProxyManager/) [](https://insight.sensiolabs.com/projects/69fe5f97-b1c8-4ddd-93ce-900b8b788cf2) [](https://www.versioneye.com/package/php--ocramius--proxy-manager) +[](https://www.versioneye.com/php/ocramius:proxy-manager/references) +[](http://hhvm.h4cc.de/package/ocramius/proxy-manager) [](https://packagist.org/packages/ocramius/proxy-manager) [](https://packagist.org/packages/ocramius/proxy-manager) @@ -95,7 +97,7 @@ A Null Object Proxy can be created from an object, a class name or an interface ```php $factory = new \ProxyManager\Factory\NullObjectFactory(); -$proxy = $factory->createProxy('My\EntityObjectInterface'); // created from interface name +$proxy = $factory->createProxy('My\EntityObjectInterface'); $proxy->getName(); // empty return $proxy = $factory->createProxy($entity); // created from object @@ -142,17 +144,6 @@ $proxy->doFoo(); See the [complete documentation about lazy loading ghost objects](/docs/lazy-loading-ghost-object.md) in the `docs/` directory. -## Lazy References - -A lazy reference proxy is actually a proxy backed by some kind of reference holder (usually a registry) that can fetch -existing instances of a particular object. - -A lazy reference is usually necessary when multiple instances of the same object can be avoided, or when the instances -are not hard links (like with [Weakref](http://php.net/manual/en/book.weakref.php)), and could be garbage-collected to -save memory in long time running processes. - -This feature [yet to be planned](https://github.com/Ocramius/ProxyManager/issues/8). - ## Remote Object A remote object proxy is an object that is located on a different system, but is used as if it was available locally. diff --git a/vendor/ocramius/proxy-manager/composer.json b/vendor/ocramius/proxy-manager/composer.json index fa7e22638d4..cde5eca13c8 100644 --- a/vendor/ocramius/proxy-manager/composer.json +++ b/vendor/ocramius/proxy-manager/composer.json @@ -4,7 +4,6 @@ "type": "library", "license": "MIT", "homepage": "https://github.com/Ocramius/ProxyManager", - "minimum-stability": "dev", "keywords": [ "proxy", "proxy pattern", @@ -25,7 +24,7 @@ }, "require-dev": { "ext-phar": "*", - "phpunit/phpunit": "~3.7", + "phpunit/phpunit": "~4.0", "squizlabs/php_codesniffer": "1.5.*" }, "suggest": { @@ -40,6 +39,12 @@ "ProxyManager\\": "src" } }, + "autoload-dev": { + "psr-0": { + "ProxyManagerTest\\": "tests", + "ProxyManagerTestAsset\\": "tests" + } + }, "extra": { "branch-alias": { "dev-master": "0.6.x-dev" diff --git a/vendor/ocramius/proxy-manager/docs/lazy-loading-ghost-object.md b/vendor/ocramius/proxy-manager/docs/lazy-loading-ghost-object.md index 4c93439a06e..15ae42662bf 100644 --- a/vendor/ocramius/proxy-manager/docs/lazy-loading-ghost-object.md +++ b/vendor/ocramius/proxy-manager/docs/lazy-loading-ghost-object.md @@ -189,7 +189,7 @@ unset($proxy->someProperty); clone $proxy; // serializing the proxy -$unserialized = serialize(unserialize($proxy)); +$unserialized = unserialize(serialize($proxy)); ``` Remember to call `$proxy->setProxyInitializer(null);` to disable initialization of your proxy, or it will happen more diff --git a/vendor/ocramius/proxy-manager/phpdox.xml.dist b/vendor/ocramius/proxy-manager/phpdox.xml.dist index c610db976ac..6cbf78ba181 100644 --- a/vendor/ocramius/proxy-manager/phpdox.xml.dist +++ b/vendor/ocramius/proxy-manager/phpdox.xml.dist @@ -13,4 +13,4 @@ <build engine="html" enabled="true" output="api"/> </generator> </project> -</phpdox> \ No newline at end of file +</phpdox> diff --git a/vendor/ocramius/proxy-manager/phpmd.xml.dist b/vendor/ocramius/proxy-manager/phpmd.xml.dist index 4a9f7df5bfe..ae91e86a158 100644 --- a/vendor/ocramius/proxy-manager/phpmd.xml.dist +++ b/vendor/ocramius/proxy-manager/phpmd.xml.dist @@ -13,4 +13,4 @@ <exclude name="EvalExpression"/> </rule> <rule ref="rulesets/naming.xml"/> -</ruleset> \ No newline at end of file +</ruleset> diff --git a/vendor/ocramius/proxy-manager/phpunit.xml.dist b/vendor/ocramius/proxy-manager/phpunit.xml.dist index 94f3665c6c5..b595427c260 100644 --- a/vendor/ocramius/proxy-manager/phpunit.xml.dist +++ b/vendor/ocramius/proxy-manager/phpunit.xml.dist @@ -1,6 +1,6 @@ <?xml version="1.0"?> <phpunit - bootstrap="./tests/Bootstrap.php" + bootstrap="./vendor/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" @@ -14,6 +14,9 @@ <testsuite name="ProxyManager tests"> <directory>./tests/ProxyManagerTest</directory> </testsuite> + <testsuite name="ProxyManager language integration tests"> + <directory suffix=".phpt">./tests/language-feature-scripts</directory> + </testsuite> <filter> <whitelist addUncoveredFilesFromWhitelist="true"> <directory suffix=".php">./src</directory> diff --git a/vendor/ocramius/proxy-manager/src/ProxyManager/Configuration.php b/vendor/ocramius/proxy-manager/src/ProxyManager/Configuration.php index 486ff5dd83a..77ff28c4810 100644 --- a/vendor/ocramius/proxy-manager/src/ProxyManager/Configuration.php +++ b/vendor/ocramius/proxy-manager/src/ProxyManager/Configuration.php @@ -63,6 +63,7 @@ class Configuration /** * @deprecated deprecated since version 0.5 + * @codeCoverageIgnore */ public function setAutoGenerateProxies() { @@ -72,6 +73,7 @@ class Configuration * @return bool * * @deprecated deprecated since version 0.5 + * @codeCoverageIgnore */ public function doesAutoGenerateProxies() { @@ -126,7 +128,7 @@ class Configuration } /** - * @return null|string + * @return string */ public function getProxiesTargetDir() { diff --git a/vendor/ocramius/proxy-manager/src/ProxyManager/FileLocator/FileLocatorInterface.php b/vendor/ocramius/proxy-manager/src/ProxyManager/FileLocator/FileLocatorInterface.php index 2980c5d2e6e..c52ac0281ae 100644 --- a/vendor/ocramius/proxy-manager/src/ProxyManager/FileLocator/FileLocatorInterface.php +++ b/vendor/ocramius/proxy-manager/src/ProxyManager/FileLocator/FileLocatorInterface.php @@ -29,9 +29,9 @@ interface FileLocatorInterface /** * Retrieves the file name for the given proxy * - * @param $className + * @param string $className * - * @return mixed + * @return string */ public function getProxyFileName($className); } diff --git a/vendor/ocramius/proxy-manager/src/ProxyManager/Generator/MagicMethodGenerator.php b/vendor/ocramius/proxy-manager/src/ProxyManager/Generator/MagicMethodGenerator.php index e0bd1f863a1..462aa8f8ed5 100644 --- a/vendor/ocramius/proxy-manager/src/ProxyManager/Generator/MagicMethodGenerator.php +++ b/vendor/ocramius/proxy-manager/src/ProxyManager/Generator/MagicMethodGenerator.php @@ -28,6 +28,11 @@ use ReflectionClass; */ class MagicMethodGenerator extends MethodGenerator { + /** + * @param ReflectionClass $originalClass + * @param string $name + * @param array $parameters + */ public function __construct(ReflectionClass $originalClass, $name, array $parameters = array()) { parent::__construct( diff --git a/vendor/ocramius/proxy-manager/src/ProxyManager/Generator/ParameterGenerator.php b/vendor/ocramius/proxy-manager/src/ProxyManager/Generator/ParameterGenerator.php index 49b9764b923..7960d42d10d 100644 --- a/vendor/ocramius/proxy-manager/src/ProxyManager/Generator/ParameterGenerator.php +++ b/vendor/ocramius/proxy-manager/src/ProxyManager/Generator/ParameterGenerator.php @@ -101,15 +101,13 @@ class ParameterGenerator extends ZendParameterGenerator return ''; } - if (is_string($this->defaultValue)) { - return ' = ' . ValueGenerator::escape($this->defaultValue); - } + $defaultValue = $this->defaultValue instanceof ValueGenerator + ? $this->defaultValue + : new ValueGenerator($this->defaultValue); - if ($this->defaultValue instanceof ValueGenerator) { - $this->defaultValue->setOutputMode(ValueGenerator::OUTPUT_SINGLE_LINE); - } + $defaultValue->setOutputMode(ValueGenerator::OUTPUT_SINGLE_LINE); - return ' = ' . $this->defaultValue; + return ' = ' . $defaultValue; } /** diff --git a/vendor/ocramius/proxy-manager/src/ProxyManager/Inflector/ClassNameInflectorInterface.php b/vendor/ocramius/proxy-manager/src/ProxyManager/Inflector/ClassNameInflectorInterface.php index db46a78f7ff..71fc43275bb 100644 --- a/vendor/ocramius/proxy-manager/src/ProxyManager/Inflector/ClassNameInflectorInterface.php +++ b/vendor/ocramius/proxy-manager/src/ProxyManager/Inflector/ClassNameInflectorInterface.php @@ -46,7 +46,7 @@ interface ClassNameInflectorInterface * @param string $className * @param array $options arbitrary options to be used for the generated class name * - * @return mixed + * @return string */ public function getProxyClassName($className, array $options = array()); diff --git a/vendor/ocramius/proxy-manager/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/Constructor.php b/vendor/ocramius/proxy-manager/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/Constructor.php index 37b196843c9..3770a16f3ea 100644 --- a/vendor/ocramius/proxy-manager/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/Constructor.php +++ b/vendor/ocramius/proxy-manager/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/Constructor.php @@ -59,7 +59,7 @@ class Constructor extends MethodGenerator $localizedProperties = array(); foreach ($originalClass->getProperties() as $originalProperty) { - if ((PHP_VERSION_ID < 50400 || (defined('HHVM_VERSION'))) && $originalProperty->isPrivate()) { + if ((! method_exists('Closure', 'bind')) && $originalProperty->isPrivate()) { // @codeCoverageIgnoreStart throw UnsupportedProxiedClassException::unsupportedLocalizedReflectionProperty($originalProperty); // @codeCoverageIgnoreEnd diff --git a/vendor/ocramius/proxy-manager/src/ProxyManager/ProxyGenerator/LazyLoadingGhost/MethodGenerator/CallInitializer.php b/vendor/ocramius/proxy-manager/src/ProxyManager/ProxyGenerator/LazyLoadingGhost/MethodGenerator/CallInitializer.php index 92be722e725..36f2794fdf1 100644 --- a/vendor/ocramius/proxy-manager/src/ProxyManager/ProxyGenerator/LazyLoadingGhost/MethodGenerator/CallInitializer.php +++ b/vendor/ocramius/proxy-manager/src/ProxyManager/ProxyGenerator/LazyLoadingGhost/MethodGenerator/CallInitializer.php @@ -37,8 +37,8 @@ class CallInitializer extends MethodGenerator */ public function __construct( PropertyGenerator $initializerProperty, - PropertyGenerator $publicPropertiesDefaults, - PropertyGenerator $initializationTracker + PropertyGenerator $publicPropsDefaults, + PropertyGenerator $initTracker ) { parent::__construct(UniqueIdentifierGenerator::getIdentifier('callInitializer')); $this->setDocblock("Triggers initialization logic for this ghost object"); @@ -51,12 +51,12 @@ class CallInitializer extends MethodGenerator $this->setVisibility(static::VISIBILITY_PRIVATE); $initializer = $initializerProperty->getName(); - $initialization = $initializationTracker->getName(); + $initialization = $initTracker->getName(); $this->setBody( 'if ($this->' . $initialization . ' || ! $this->' . $initializer . ') {' . "\n return;\n}\n\n" . "\$this->" . $initialization . " = true;\n\n" - . "foreach (self::\$" . $publicPropertiesDefaults->getName() . " as \$key => \$default) {\n" + . "foreach (self::\$" . $publicPropsDefaults->getName() . " as \$key => \$default) {\n" . " \$this->\$key = \$default;\n" . "}\n\n" . '$this->' . $initializer . '->__invoke' diff --git a/vendor/ocramius/proxy-manager/src/ProxyManager/ProxyGenerator/LazyLoadingGhostGenerator.php b/vendor/ocramius/proxy-manager/src/ProxyManager/ProxyGenerator/LazyLoadingGhostGenerator.php index 7a2b4e10e1c..b8e7ffa9a90 100644 --- a/vendor/ocramius/proxy-manager/src/ProxyManager/ProxyGenerator/LazyLoadingGhostGenerator.php +++ b/vendor/ocramius/proxy-manager/src/ProxyManager/ProxyGenerator/LazyLoadingGhostGenerator.php @@ -58,9 +58,9 @@ class LazyLoadingGhostGenerator implements ProxyGeneratorInterface */ public function generate(ReflectionClass $originalClass, ClassGenerator $classGenerator) { - $interfaces = array('ProxyManager\\Proxy\\GhostObjectInterface'); - $publicProperties = new PublicPropertiesMap($originalClass); - $publicPropertiesDefaults = new PublicPropertiesDefaults($originalClass); + $interfaces = array('ProxyManager\\Proxy\\GhostObjectInterface'); + $publicProperties = new PublicPropertiesMap($originalClass); + $publicPropsDefaults = new PublicPropertiesDefaults($originalClass); if ($originalClass->isInterface()) { $interfaces[] = $originalClass->getName(); @@ -72,9 +72,9 @@ class LazyLoadingGhostGenerator implements ProxyGeneratorInterface $classGenerator->addPropertyFromGenerator($initializer = new InitializerProperty()); $classGenerator->addPropertyFromGenerator($initializationTracker = new InitializationTracker()); $classGenerator->addPropertyFromGenerator($publicProperties); - $classGenerator->addPropertyFromGenerator($publicPropertiesDefaults); + $classGenerator->addPropertyFromGenerator($publicPropsDefaults); - $init = new CallInitializer($initializer, $publicPropertiesDefaults, $initializationTracker); + $init = new CallInitializer($initializer, $publicPropsDefaults, $initializationTracker); $classGenerator->addMethodFromGenerator($init); diff --git a/vendor/ocramius/proxy-manager/src/ProxyManager/ProxyGenerator/Util/PublicScopeSimulator.php b/vendor/ocramius/proxy-manager/src/ProxyManager/ProxyGenerator/Util/PublicScopeSimulator.php index 5a823e980d0..a908e58bcd3 100644 --- a/vendor/ocramius/proxy-manager/src/ProxyManager/ProxyGenerator/Util/PublicScopeSimulator.php +++ b/vendor/ocramius/proxy-manager/src/ProxyManager/ProxyGenerator/Util/PublicScopeSimulator.php @@ -170,13 +170,13 @@ class PublicScopeSimulator } /** - * Generates code to bind operations to the parent scope if supported by the current PHP version + * Generates code to bind operations to the parent scope if supported by the current PHP implementation * * @return string */ private static function getScopeReBind() { - if (PHP_VERSION_ID < 50400 || defined('HHVM_VERSION')) { + if (! method_exists('Closure', 'bind')) { // @codeCoverageIgnoreStart return ''; // @codeCoverageIgnoreEnd diff --git a/vendor/ocramius/proxy-manager/tests/Bootstrap.php b/vendor/ocramius/proxy-manager/tests/Bootstrap.php deleted file mode 100644 index 9f84dcd692c..00000000000 --- a/vendor/ocramius/proxy-manager/tests/Bootstrap.php +++ /dev/null @@ -1,39 +0,0 @@ -<?php -/* - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * This software consists of voluntary contributions made by many individuals - * and is licensed under the MIT license. - */ - -ini_set('error_reporting', E_ALL | E_STRICT); - -$files = array(__DIR__ . '/../vendor/autoload.php', __DIR__ . '/../../../autoload.php'); - -foreach ($files as $file) { - if (file_exists($file)) { - $loader = require $file; - - break; - } -} - -if (! isset($loader)) { - throw new RuntimeException('vendor/autoload.php could not be found. Did you run `php composer.phar install`?'); -} - -/* @var $loader \Composer\Autoload\ClassLoader */ -$loader->add('ProxyManagerTest\\', __DIR__); -$loader->add('ProxyManagerTestAsset\\', __DIR__); - -unset($files, $file, $loader); diff --git a/vendor/ocramius/proxy-manager/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php b/vendor/ocramius/proxy-manager/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php index bedb96097cf..5db91f4ab57 100644 --- a/vendor/ocramius/proxy-manager/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php +++ b/vendor/ocramius/proxy-manager/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php @@ -47,7 +47,7 @@ class AccessInterceptorScopeLocalizerFunctionalTest extends PHPUnit_Framework_Te */ public static function setUpBeforeClass() { - if (PHP_VERSION_ID < 50400 || defined('HHVM_VERSION')) { + if (! method_exists('Closure', 'bind')) { throw new PHPUnit_Framework_SkippedTestError( 'PHP 5.3 doesn\'t support scope localization of private properties' ); diff --git a/vendor/ocramius/proxy-manager/tests/ProxyManagerTest/Functional/LazyLoadingValueHolderFunctionalTest.php b/vendor/ocramius/proxy-manager/tests/ProxyManagerTest/Functional/LazyLoadingValueHolderFunctionalTest.php index 6dc1d3b3002..166dd0257fb 100644 --- a/vendor/ocramius/proxy-manager/tests/ProxyManagerTest/Functional/LazyLoadingValueHolderFunctionalTest.php +++ b/vendor/ocramius/proxy-manager/tests/ProxyManagerTest/Functional/LazyLoadingValueHolderFunctionalTest.php @@ -213,6 +213,29 @@ class LazyLoadingValueHolderFunctionalTest extends PHPUnit_Framework_TestCase $this->assertSame('foo', $proxy->property0); } + /** + * @group 16 + * + * Verifies that initialization of a value holder proxy may happen multiple times + */ + public function testWillAllowMultipleProxyInitialization() + { + $proxyClass = $this->generateProxy('ProxyManagerTestAsset\\BaseClass'); + $counter = 0; + $initializer = function (& $wrappedInstance) use (& $counter) { + $wrappedInstance = new BaseClass(); + + $wrappedInstance->publicProperty = (string) ($counter += 1); + }; + + /* @var $proxy BaseClass */ + $proxy = new $proxyClass($initializer); + + $this->assertSame('1', $proxy->publicProperty); + $this->assertSame('2', $proxy->publicProperty); + $this->assertSame('3', $proxy->publicProperty); + } + /** * Generates a proxy for the given class name, and retrieves its class name * diff --git a/vendor/ocramius/proxy-manager/tests/ProxyManagerTest/Functional/MultipleProxyGenerationTest.php b/vendor/ocramius/proxy-manager/tests/ProxyManagerTest/Functional/MultipleProxyGenerationTest.php index 4686293d434..de3bfee1c06 100644 --- a/vendor/ocramius/proxy-manager/tests/ProxyManagerTest/Functional/MultipleProxyGenerationTest.php +++ b/vendor/ocramius/proxy-manager/tests/ProxyManagerTest/Functional/MultipleProxyGenerationTest.php @@ -58,9 +58,7 @@ class MultipleProxyGenerationTest extends PHPUnit_Framework_TestCase $reflectionClass = new ReflectionClass($className); - if ((defined('HHVM_VERSION') || PHP_VERSION_ID < 50400) - && $reflectionClass->getProperties(ReflectionProperty::IS_PRIVATE) - ) { + if ((! method_exists('Closure', 'bind')) && $reflectionClass->getProperties(ReflectionProperty::IS_PRIVATE)) { $skipScopeLocalizerTests = true; } diff --git a/vendor/ocramius/proxy-manager/tests/ProxyManagerTest/Generator/MethodGeneratorTest.php b/vendor/ocramius/proxy-manager/tests/ProxyManagerTest/Generator/MethodGeneratorTest.php index 6a6c8307e98..cd0a5248a24 100644 --- a/vendor/ocramius/proxy-manager/tests/ProxyManagerTest/Generator/MethodGeneratorTest.php +++ b/vendor/ocramius/proxy-manager/tests/ProxyManagerTest/Generator/MethodGeneratorTest.php @@ -75,4 +75,22 @@ class MethodGeneratorTest extends PHPUnit_Framework_TestCase $this->assertSame(MethodGenerator::VISIBILITY_PRIVATE, $method->getVisibility()); } + + public function testGeneratedParametersFromReflection() + { + $method = MethodGenerator::fromReflection(new MethodReflection( + 'ProxyManagerTestAsset\\BaseClass', + 'publicTypeHintedMethod' + )); + + $this->assertSame('publicTypeHintedMethod', $method->getName()); + + $parameters = $method->getParameters(); + + $this->assertCount(1, $parameters); + + $param = $parameters['param']; + + $this->assertSame('stdClass', $param->getType()); + } } diff --git a/vendor/ocramius/proxy-manager/tests/ProxyManagerTest/Generator/ParameterGeneratorTest.php b/vendor/ocramius/proxy-manager/tests/ProxyManagerTest/Generator/ParameterGeneratorTest.php index f9874084810..98ac8b5c912 100644 --- a/vendor/ocramius/proxy-manager/tests/ProxyManagerTest/Generator/ParameterGeneratorTest.php +++ b/vendor/ocramius/proxy-manager/tests/ProxyManagerTest/Generator/ParameterGeneratorTest.php @@ -124,6 +124,22 @@ class ParameterGeneratorTest extends PHPUnit_Framework_TestCase 1 )); - $this->assertNull($parameter->getDefaultValue()->getValue()); + $this->assertSame('null', strtolower((string) $parameter->getDefaultValue())); + } + + public function testGeneratedParametersAreProperlyEscaped() + { + $parameter = new ParameterGenerator(); + + $parameter->setName('foo'); + $parameter->setDefaultValue('\'bar\\baz'); + + $this->assertThat( + $parameter->generate(), + $this->logicalOr( + $this->equalTo('$foo = \'\\\'bar\\baz\''), + $this->equalTo('$foo = \'\\\'bar\\\\baz\'') + ) + ); } } diff --git a/vendor/ocramius/proxy-manager/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/ConstructorTest.php b/vendor/ocramius/proxy-manager/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/ConstructorTest.php index 9202412a65f..f9a3758e506 100644 --- a/vendor/ocramius/proxy-manager/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/ConstructorTest.php +++ b/vendor/ocramius/proxy-manager/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/ConstructorTest.php @@ -146,7 +146,7 @@ $this->post = $suffixInterceptors;', */ public function testBodyStructureWithPrivateProperties() { - if (PHP_VERSION_ID < 50400 || defined('HHVM_VERSION')) { + if (! method_exists('Closure', 'bind')) { $this->setExpectedException('ProxyManager\Exception\UnsupportedProxiedClassException'); } diff --git a/vendor/ocramius/proxy-manager/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizerTest.php b/vendor/ocramius/proxy-manager/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizerTest.php index f90decc8e30..4aa1d6035ac 100644 --- a/vendor/ocramius/proxy-manager/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizerTest.php +++ b/vendor/ocramius/proxy-manager/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizerTest.php @@ -48,7 +48,7 @@ class AccessInterceptorScopeLocalizerTest extends AbstractProxyGeneratorTest return parent::testGeneratesValidCode($className); } - if ((PHP_VERSION_ID < 50400 || defined('HHVM_VERSION')) + if ((! method_exists('Closure', 'bind')) && $reflectionClass->getProperties(ReflectionProperty::IS_PRIVATE) ) { $this->setExpectedException('ProxyManager\Exception\UnsupportedProxiedClassException'); diff --git a/vendor/ocramius/proxy-manager/tests/ProxyManagerTestAsset/BaseInterface.php b/vendor/ocramius/proxy-manager/tests/ProxyManagerTestAsset/BaseInterface.php index 8749a8df7ef..27aeda5c7e5 100644 --- a/vendor/ocramius/proxy-manager/tests/ProxyManagerTestAsset/BaseInterface.php +++ b/vendor/ocramius/proxy-manager/tests/ProxyManagerTestAsset/BaseInterface.php @@ -27,7 +27,7 @@ namespace ProxyManagerTestAsset; interface BaseInterface { /** - * @return mixed + * @return string */ public function publicMethod(); } diff --git a/vendor/ocramius/proxy-manager/tests/ProxyManagerTestAsset/RemoteProxy/FooServiceInterface.php b/vendor/ocramius/proxy-manager/tests/ProxyManagerTestAsset/RemoteProxy/FooServiceInterface.php index 4894b213899..af0b764b8c8 100644 --- a/vendor/ocramius/proxy-manager/tests/ProxyManagerTestAsset/RemoteProxy/FooServiceInterface.php +++ b/vendor/ocramius/proxy-manager/tests/ProxyManagerTestAsset/RemoteProxy/FooServiceInterface.php @@ -27,7 +27,7 @@ namespace ProxyManagerTestAsset\RemoteProxy; interface FooServiceInterface { /** - * @return mixed + * @return string */ public function foo(); } diff --git a/vendor/ocramius/proxy-manager/tests/TestConfiguration.php.dist b/vendor/ocramius/proxy-manager/tests/TestConfiguration.php.dist deleted file mode 100644 index 3d0507eb755..00000000000 --- a/vendor/ocramius/proxy-manager/tests/TestConfiguration.php.dist +++ /dev/null @@ -1,19 +0,0 @@ -<?php -/* - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * This software consists of voluntary contributions made by many individuals - * and is licensed under the MIT license. - */ - -return array(); \ No newline at end of file diff --git a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-denies-private-property-read.phpt b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-denies-private-property-read.phpt index 313312a1ca1..0dff2c7c8b3 100644 --- a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-denies-private-property-read.phpt +++ b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-denies-private-property-read.phpt @@ -17,4 +17,4 @@ $proxy = $factory->createProxy(new Kitchen()); $proxy->sweets; ?> --EXPECTF-- -Fatal error: Cannot access private property %s::$sweets in %s on line %d \ No newline at end of file +%SFatal error: Cannot access private property %s::$sweets in %s on line %d \ No newline at end of file diff --git a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-denies-private-property-unset.phpt b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-denies-private-property-unset.phpt index 3f32a248449..e6e6eeb69af 100644 --- a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-denies-private-property-unset.phpt +++ b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-denies-private-property-unset.phpt @@ -17,4 +17,4 @@ $proxy = $factory->createProxy(new Kitchen()); unset($proxy->sweets); ?> --EXPECTF-- -Fatal error: Cannot access private property %s::$sweets in %s on line %d \ No newline at end of file +%SFatal error: Cannot %s property %s on line %d \ No newline at end of file diff --git a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-denies-private-property-write.phpt b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-denies-private-property-write.phpt index b108ac2b7ea..e87d520af95 100644 --- a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-denies-private-property-write.phpt +++ b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-denies-private-property-write.phpt @@ -17,4 +17,4 @@ $proxy = $factory->createProxy(new Kitchen()); $proxy->sweets = 'stolen'; ?> --EXPECTF-- -Fatal error: Cannot access private property %s::$sweets in %s on line %d \ No newline at end of file +%SFatal error: Cannot access %s property%S in %s on line %d \ No newline at end of file diff --git a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-denies-protected-property-read.phpt b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-denies-protected-property-read.phpt index 8d47a63cae7..ed579f5d7cd 100644 --- a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-denies-protected-property-read.phpt +++ b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-denies-protected-property-read.phpt @@ -17,4 +17,4 @@ $proxy = $factory->createProxy(new Kitchen()); $proxy->sweets; ?> --EXPECTF-- -Fatal error: Cannot access protected property %s::$sweets in %s on line %d \ No newline at end of file +%SFatal error: Cannot access protected property %s::$sweets in %s on line %d \ No newline at end of file diff --git a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-denies-protected-property-unset.phpt b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-denies-protected-property-unset.phpt index 21ed252688d..d8fcd495010 100644 --- a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-denies-protected-property-unset.phpt +++ b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-denies-protected-property-unset.phpt @@ -17,4 +17,4 @@ $proxy = $factory->createProxy(new Kitchen()); unset($proxy->sweets); ?> --EXPECTF-- -Fatal error: Cannot access protected property %s::$sweets in %s on line %d \ No newline at end of file +%SFatal error: Cannot %s property%sin %s on line %d \ No newline at end of file diff --git a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-denies-protected-property-write.phpt b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-denies-protected-property-write.phpt index 31acfafa2cf..f288b0b4f7a 100644 --- a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-denies-protected-property-write.phpt +++ b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-denies-protected-property-write.phpt @@ -17,4 +17,4 @@ $proxy = $factory->createProxy(new Kitchen()); $proxy->sweets = 'stolen'; ?> --EXPECTF-- -Fatal error: Cannot access protected property %s::$sweets in %s on line %d \ No newline at end of file +%SFatal error: Cannot %s property%sin %s on line %d \ No newline at end of file diff --git a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-scope-localizer-denies-private-property-isset.phpt b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-scope-localizer-denies-private-property-isset.phpt index 4b7b916acaf..d9eef6795d5 100644 --- a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-scope-localizer-denies-private-property-isset.phpt +++ b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-scope-localizer-denies-private-property-isset.phpt @@ -2,7 +2,7 @@ Verifies that generated access interceptors disallow private property direct isset check --SKIPIF-- <?php -if (PHP_VERSION_ID < 50400) { +if (! method_exists('Closure', 'bind')) { echo 'skip PHP 5.4+ is needed to localize private properties'; } ?> diff --git a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-scope-localizer-denies-private-property-read.phpt b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-scope-localizer-denies-private-property-read.phpt index 436b76b92fc..18a6c95f9ba 100644 --- a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-scope-localizer-denies-private-property-read.phpt +++ b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-scope-localizer-denies-private-property-read.phpt @@ -2,7 +2,7 @@ Verifies that generated access interceptors disallow private property direct read --SKIPIF-- <?php -if (PHP_VERSION_ID < 50400) { +if (! method_exists('Closure', 'bind')) { echo 'skip PHP 5.4+ is needed to localize private properties'; } ?> @@ -23,4 +23,4 @@ $proxy = $factory->createProxy(new Kitchen()); $proxy->sweets; ?> --EXPECTF-- -Fatal error: Cannot access private property %s::$sweets in %s on line %d +%SFatal error: Cannot access private property %s::$sweets in %s on line %d diff --git a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-scope-localizer-denies-private-property-unset.phpt b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-scope-localizer-denies-private-property-unset.phpt index c296ef4f26a..92a64e2d77f 100644 --- a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-scope-localizer-denies-private-property-unset.phpt +++ b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-scope-localizer-denies-private-property-unset.phpt @@ -2,7 +2,7 @@ Verifies that generated access interceptors disallow private property direct unset --SKIPIF-- <?php -if (PHP_VERSION_ID < 50400) { +if (! method_exists('Closure', 'bind')) { echo 'skip PHP 5.4+ is needed to localize private properties'; } ?> @@ -23,4 +23,4 @@ $proxy = $factory->createProxy(new Kitchen()); unset($proxy->sweets); ?> --EXPECTF-- -Fatal error: Cannot access private property %s::$sweets in %s on line %d +%SFatal error: Cannot %s property%sin %s on line %d diff --git a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-scope-localizer-denies-private-property-write.phpt b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-scope-localizer-denies-private-property-write.phpt index bd8e115d7eb..a0b3cc1f591 100644 --- a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-scope-localizer-denies-private-property-write.phpt +++ b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-scope-localizer-denies-private-property-write.phpt @@ -2,7 +2,7 @@ Verifies that generated access interceptors disallow private property direct write --SKIPIF-- <?php -if (PHP_VERSION_ID < 50400) { +if (! method_exists('Closure', 'bind')) { echo 'skip PHP 5.4+ is needed to localize private properties'; } ?> @@ -23,4 +23,4 @@ $proxy = $factory->createProxy(new Kitchen()); $proxy->sweets = 'stolen'; ?> --EXPECTF-- -Fatal error: Cannot access private property %s::$sweets in %s on line %d +%SFatal error: Cannot %s property%sin %s on line %d diff --git a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-scope-localizer-denies-protected-property-read.phpt b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-scope-localizer-denies-protected-property-read.phpt index d3519a42905..c97b09165e9 100644 --- a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-scope-localizer-denies-protected-property-read.phpt +++ b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-scope-localizer-denies-protected-property-read.phpt @@ -17,4 +17,4 @@ $proxy = $factory->createProxy(new Kitchen()); $proxy->sweets; ?> --EXPECTF-- -Fatal error: Cannot access protected property %s::$sweets in %s on line %d +%SFatal error: Cannot access protected property %s::$sweets in %s on line %d diff --git a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-scope-localizer-denies-protected-property-unset.phpt b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-scope-localizer-denies-protected-property-unset.phpt index cb20b6d595c..91cc4f94238 100644 --- a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-scope-localizer-denies-protected-property-unset.phpt +++ b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-scope-localizer-denies-protected-property-unset.phpt @@ -17,4 +17,4 @@ $proxy = $factory->createProxy(new Kitchen()); unset($proxy->sweets); ?> --EXPECTF-- -Fatal error: Cannot access protected property %s::$sweets in %s on line %d +%SFatal error: Cannot %s property%sin %s on line %d diff --git a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-scope-localizer-denies-protected-property-write.phpt b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-scope-localizer-denies-protected-property-write.phpt index b4ab7bdd9db..97da7390162 100644 --- a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-scope-localizer-denies-protected-property-write.phpt +++ b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/access-interceptor-scope-localizer-denies-protected-property-write.phpt @@ -17,4 +17,4 @@ $proxy = $factory->createProxy(new Kitchen()); $proxy->sweets = 'stolen'; ?> --EXPECTF-- -Fatal error: Cannot access protected property %s::$sweets in %s on line %d +%SFatal error: Cannot %s property%sin %s on line %d diff --git a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/init.php b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/init.php index cab41588326..ce6cffc92f5 100644 --- a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/init.php +++ b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/init.php @@ -3,7 +3,7 @@ use ProxyManager\Configuration; use ProxyManager\GeneratorStrategy\EvaluatingGeneratorStrategy; -require_once __DIR__ . '/../Bootstrap.php'; +require_once __DIR__ . '/../../vendor/autoload.php'; $configuration = new Configuration(); diff --git a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-ghost-denies-inexisting-property-read.phpt b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-ghost-denies-inexisting-property-read.phpt index 73042abe092..0b0267b30f0 100644 --- a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-ghost-denies-inexisting-property-read.phpt +++ b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-ghost-denies-inexisting-property-read.phpt @@ -17,4 +17,4 @@ $proxy = $factory->createProxy('Kitchen', function () {}); $proxy->nonExisting; ?> --EXPECTF-- -Notice: Undefined property: Kitchen::$nonExisting in %s on line %d \ No newline at end of file +%SNotice: Undefined property: Kitchen::$nonExisting in %s on line %d \ No newline at end of file diff --git a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-ghost-denies-private-property-read.phpt b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-ghost-denies-private-property-read.phpt index e1fd83bd3ff..cdb0d09e079 100644 --- a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-ghost-denies-private-property-read.phpt +++ b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-ghost-denies-private-property-read.phpt @@ -17,4 +17,4 @@ $proxy = $factory->createProxy('Kitchen', function () {}); $proxy->sweets; ?> --EXPECTF-- -Fatal error: Cannot access private property %s::$sweets in %s on line %d \ No newline at end of file +%SFatal error: Cannot access private property %s::$sweets in %s on line %d \ No newline at end of file diff --git a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-ghost-denies-private-property-unset.phpt b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-ghost-denies-private-property-unset.phpt index 62b1bf1e67c..18580aaa183 100644 --- a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-ghost-denies-private-property-unset.phpt +++ b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-ghost-denies-private-property-unset.phpt @@ -17,4 +17,4 @@ $proxy = $factory->createProxy('Kitchen', function () {}); unset($proxy->sweets); ?> --EXPECTF-- -Fatal error: Cannot access private property %s::$sweets in %s on line %d \ No newline at end of file +%SFatal error: Cannot %s property %s on line %d \ No newline at end of file diff --git a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-ghost-denies-private-property-write.phpt b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-ghost-denies-private-property-write.phpt index e0840d73d37..a081d71418f 100644 --- a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-ghost-denies-private-property-write.phpt +++ b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-ghost-denies-private-property-write.phpt @@ -17,4 +17,4 @@ $proxy = $factory->createProxy('Kitchen', function () {}); $proxy->sweets = 'stolen'; ?> --EXPECTF-- -Fatal error: Cannot access private property %s::$sweets in %s on line %d \ No newline at end of file +%SFatal error: Cannot access %s property%S in %s on line %d \ No newline at end of file diff --git a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-ghost-denies-protected-property-read.phpt b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-ghost-denies-protected-property-read.phpt index 14633704e15..e71bb30281b 100644 --- a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-ghost-denies-protected-property-read.phpt +++ b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-ghost-denies-protected-property-read.phpt @@ -17,4 +17,4 @@ $proxy = $factory->createProxy('Kitchen', function () {}); $proxy->sweets; ?> --EXPECTF-- -Fatal error: Cannot access protected property %s::$sweets in %s on line %d \ No newline at end of file +%SFatal error: Cannot access protected property %s::$sweets in %s on line %d \ No newline at end of file diff --git a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-ghost-denies-protected-property-unset.phpt b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-ghost-denies-protected-property-unset.phpt index a0a6643c6a7..6e742a1bbdb 100644 --- a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-ghost-denies-protected-property-unset.phpt +++ b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-ghost-denies-protected-property-unset.phpt @@ -17,4 +17,4 @@ $proxy = $factory->createProxy('Kitchen', function () {}); unset($proxy->sweets); ?> --EXPECTF-- -Fatal error: Cannot access protected property %s::$sweets in %s on line %d \ No newline at end of file +%SFatal error: Cannot %s property%sin %s on line %d \ No newline at end of file diff --git a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-ghost-denies-protected-property-write.phpt b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-ghost-denies-protected-property-write.phpt index 46f81785d2a..580f5a59c3e 100644 --- a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-ghost-denies-protected-property-write.phpt +++ b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-ghost-denies-protected-property-write.phpt @@ -17,4 +17,4 @@ $proxy = $factory->createProxy('Kitchen', function () {}); $proxy->sweets = 'stolen'; ?> --EXPECTF-- -Fatal error: Cannot access protected property %s::$sweets in %s on line %d \ No newline at end of file +%SFatal error: Cannot %s property%sin %s on line %d \ No newline at end of file diff --git a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-value-holder-denies-private-property-read.phpt b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-value-holder-denies-private-property-read.phpt index 4660624b4e7..7631ec93170 100644 --- a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-value-holder-denies-private-property-read.phpt +++ b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-value-holder-denies-private-property-read.phpt @@ -20,4 +20,4 @@ $proxy = $factory->createProxy('Kitchen', function (& $wrapped, $proxy, $method, $proxy->sweets; ?> --EXPECTF-- -Fatal error: Cannot access private property %s::$sweets in %s on line %d \ No newline at end of file +%SFatal error: Cannot access private property %s::$sweets in %s on line %d \ No newline at end of file diff --git a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-value-holder-denies-private-property-unset.phpt b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-value-holder-denies-private-property-unset.phpt index 443785fae23..1454f78c984 100644 --- a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-value-holder-denies-private-property-unset.phpt +++ b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-value-holder-denies-private-property-unset.phpt @@ -20,4 +20,4 @@ $proxy = $factory->createProxy('Kitchen', function (& $wrapped, $proxy, $method, unset($proxy->sweets); ?> --EXPECTF-- -Fatal error: Cannot access private property %s::$sweets in %s on line %d \ No newline at end of file +%SFatal error: Cannot %s property %s on line %d \ No newline at end of file diff --git a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-value-holder-denies-private-property-write.phpt b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-value-holder-denies-private-property-write.phpt index ad035ee83e2..6b90e2f6712 100644 --- a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-value-holder-denies-private-property-write.phpt +++ b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-value-holder-denies-private-property-write.phpt @@ -20,4 +20,4 @@ $proxy = $factory->createProxy('Kitchen', function (& $wrapped, $proxy, $method, $proxy->sweets = 'stolen'; ?> --EXPECTF-- -Fatal error: Cannot access private property %s::$sweets in %s on line %d \ No newline at end of file +%SFatal error: Cannot access %s property %s on line %d \ No newline at end of file diff --git a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-value-holder-denies-protected-property-read.phpt b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-value-holder-denies-protected-property-read.phpt index cfd2690dcbd..6f2df1d788f 100644 --- a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-value-holder-denies-protected-property-read.phpt +++ b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-value-holder-denies-protected-property-read.phpt @@ -20,4 +20,4 @@ $proxy = $factory->createProxy('Kitchen', function (& $wrapped, $proxy, $method, $proxy->sweets; ?> --EXPECTF-- -Fatal error: Cannot access protected property %s::$sweets in %s on line %d \ No newline at end of file +%SFatal error: Cannot access protected property %s::$sweets in %s on line %d \ No newline at end of file diff --git a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-value-holder-denies-protected-property-unset.phpt b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-value-holder-denies-protected-property-unset.phpt index 1fac6bb56a9..238a50fb7ca 100644 --- a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-value-holder-denies-protected-property-unset.phpt +++ b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-value-holder-denies-protected-property-unset.phpt @@ -20,4 +20,4 @@ $proxy = $factory->createProxy('Kitchen', function (& $wrapped, $proxy, $method, unset($proxy->sweets); ?> --EXPECTF-- -Fatal error: Cannot access protected property %s::$sweets in %s on line %d \ No newline at end of file +%SFatal error: Cannot %s property%sin %s on line %d \ No newline at end of file diff --git a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-value-holder-denies-protected-property-write.phpt b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-value-holder-denies-protected-property-write.phpt index bb89a31e682..f8c2cacd41e 100644 --- a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-value-holder-denies-protected-property-write.phpt +++ b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-value-holder-denies-protected-property-write.phpt @@ -20,4 +20,4 @@ $proxy = $factory->createProxy('Kitchen', function (& $wrapped, $proxy, $method, $proxy->sweets = 'stolen'; ?> --EXPECTF-- -Fatal error: Cannot access protected property %s::$sweets in %s on line %d \ No newline at end of file +%SFatal error: Cannot %s property%sin %s on line %d \ No newline at end of file diff --git a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-value-holder-internal-php-classes.phpt b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-value-holder-internal-php-classes.phpt index 7aed1d1b217..2a5a77707ae 100644 --- a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-value-holder-internal-php-classes.phpt +++ b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-value-holder-internal-php-classes.phpt @@ -11,9 +11,9 @@ class PharMock extends Phar { } - public function compress($message) + public function compress($compression_type, $file_ext = null) { - echo $message; + echo $compression_type; } } diff --git a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/remote-object-json-adapter-denies-unknow-method.phpt b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/remote-object-json-adapter-denies-unknow-method.phpt index fc0cb9f7060..1910a341c4f 100644 --- a/vendor/ocramius/proxy-manager/tests/language-feature-scripts/remote-object-json-adapter-denies-unknow-method.phpt +++ b/vendor/ocramius/proxy-manager/tests/language-feature-scripts/remote-object-json-adapter-denies-unknow-method.phpt @@ -40,4 +40,4 @@ var_dump($proxy->unknown()); --EXPECTF-- string(3) "baz" -Fatal error: Call to undefined method %s::unknown() in %s on line %d +%SFatal error: Call to undefined method %s::unknown%S in %s on line %d diff --git a/vendor/symfony/yaml/Symfony/Component/Yaml/Escaper.php b/vendor/symfony/yaml/Symfony/Component/Yaml/Escaper.php index 4a6b6216132..7f6ec2bef29 100644 --- a/vendor/symfony/yaml/Symfony/Component/Yaml/Escaper.php +++ b/vendor/symfony/yaml/Symfony/Component/Yaml/Escaper.php @@ -26,18 +26,18 @@ class Escaper // first to ensure proper escaping because str_replace operates iteratively // on the input arrays. This ordering of the characters avoids the use of strtr, // which performs more slowly. - private static $escapees = array('\\\\', '\\"', '"', + private static $escapees = array('\\', '\\\\', '\\"', '"', "\x00", "\x01", "\x02", "\x03", "\x04", "\x05", "\x06", "\x07", "\x08", "\x09", "\x0a", "\x0b", "\x0c", "\x0d", "\x0e", "\x0f", "\x10", "\x11", "\x12", "\x13", "\x14", "\x15", "\x16", "\x17", "\x18", "\x19", "\x1a", "\x1b", "\x1c", "\x1d", "\x1e", "\x1f", - "\xc2\x85", "\xc2\xa0", "\xe2\x80\xa8", "\xe2\x80\xa9"); - private static $escaped = array('\\"', '\\\\', '\\"', + "\xc2\x85", "\xc2\xa0", "\xe2\x80\xa8", "\xe2\x80\xa9",); + private static $escaped = array('\\\\', '\\"', '\\\\', '\\"', "\\0", "\\x01", "\\x02", "\\x03", "\\x04", "\\x05", "\\x06", "\\a", "\\b", "\\t", "\\n", "\\v", "\\f", "\\r", "\\x0e", "\\x0f", "\\x10", "\\x11", "\\x12", "\\x13", "\\x14", "\\x15", "\\x16", "\\x17", "\\x18", "\\x19", "\\x1a", "\\e", "\\x1c", "\\x1d", "\\x1e", "\\x1f", - "\\N", "\\_", "\\L", "\\P"); + "\\N", "\\_", "\\L", "\\P",); /** * Determines if a PHP value would require double quoting in YAML. diff --git a/vendor/symfony/yaml/Symfony/Component/Yaml/Inline.php b/vendor/symfony/yaml/Symfony/Component/Yaml/Inline.php index b029e81377d..8fec216dde1 100644 --- a/vendor/symfony/yaml/Symfony/Component/Yaml/Inline.php +++ b/vendor/symfony/yaml/Symfony/Component/Yaml/Inline.php @@ -410,7 +410,7 @@ class Inline * * @return string A YAML string * - * @throws ParseException when object parsing support was disabled and the parser detected a PHP object + * @throws ParseException when object parsing support was disabled and the parser detected a PHP object or when a reference could not be resolved */ private static function evaluateScalar($scalar, $references = array()) { @@ -424,6 +424,11 @@ class Inline $value = substr($scalar, 1); } + // an unquoted * + if (false === $value || '' === $value) { + throw new ParseException('A reference must contain at least one character.'); + } + if (!array_key_exists($value, $references)) { throw new ParseException(sprintf('Reference "%s" does not exist.', $value)); } diff --git a/vendor/symfony/yaml/Symfony/Component/Yaml/Parser.php b/vendor/symfony/yaml/Symfony/Component/Yaml/Parser.php index 2204ffc4f57..fd9afafe36b 100644 --- a/vendor/symfony/yaml/Symfony/Component/Yaml/Parser.php +++ b/vendor/symfony/yaml/Symfony/Component/Yaml/Parser.php @@ -93,8 +93,8 @@ class Parser if (!isset($values['value']) || '' == trim($values['value'], ' ') || 0 === strpos(ltrim($values['value'], ' '), '#')) { $c = $this->getRealCurrentLineNb() + 1; $parser = new Parser($c); - $parser->refs =& $this->refs; - $data[] = $parser->parse($this->getNextEmbedBlock(), $exceptionOnInvalidType, $objectSupport); + $parser->refs = & $this->refs; + $data[] = $parser->parse($this->getNextEmbedBlock(null, true), $exceptionOnInvalidType, $objectSupport); } else { if (isset($values['leadspaces']) && ' ' == $values['leadspaces'] @@ -103,7 +103,7 @@ class Parser // this is a compact notation element, add to next block and parse $c = $this->getRealCurrentLineNb(); $parser = new Parser($c); - $parser->refs =& $this->refs; + $parser->refs = & $this->refs; $block = $values['value']; if ($this->isNextLineIndented()) { @@ -160,7 +160,7 @@ class Parser } $c = $this->getRealCurrentLineNb() + 1; $parser = new Parser($c); - $parser->refs =& $this->refs; + $parser->refs = & $this->refs; $parsed = $parser->parse($value, $exceptionOnInvalidType, $objectSupport); if (!is_array($parsed)) { @@ -211,7 +211,7 @@ class Parser } else { $c = $this->getRealCurrentLineNb() + 1; $parser = new Parser($c); - $parser->refs =& $this->refs; + $parser->refs = & $this->refs; $value = $parser->parse($this->getNextEmbedBlock(), $exceptionOnInvalidType, $objectSupport); // Spec: Keys MUST be unique; first one wins. // But overwriting is allowed when a merge node is used in current block. @@ -316,15 +316,20 @@ class Parser /** * Returns the next embed block of YAML. * - * @param int $indentation The indent level at which the block is to be read, or null for default + * @param int $indentation The indent level at which the block is to be read, or null for default + * @param bool $inSequence True if the enclosing data structure is a sequence * * @return string A YAML string * * @throws ParseException When indentation problem are detected */ - private function getNextEmbedBlock($indentation = null) + private function getNextEmbedBlock($indentation = null, $inSequence = false) { - $this->moveToNextLine(); + $oldLineIndentation = $this->getCurrentLineIndentation(); + + if (!$this->moveToNextLine()) { + return; + } if (null === $indentation) { $newIndent = $this->getCurrentLineIndentation(); @@ -340,6 +345,14 @@ class Parser $data = array(substr($this->currentLine, $newIndent)); + if ($inSequence && $oldLineIndentation === $newIndent && '-' === $data[0][0]) { + // the previous line contained a dash but no item content, this line is a sequence item with the same indentation + // and therefore no nested list or mapping + $this->moveToPreviousLine(); + + return; + } + $isItUnindentedCollection = $this->isStringUnIndentedCollectionItem($this->currentLine); // Comments must not be removed inside a string block (ie. after a line ending with "|") @@ -669,5 +682,4 @@ class Parser { return (0 === strpos($this->currentLine, '- ')); } - } diff --git a/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/DumperTest.php b/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/DumperTest.php index ec2c65e3d06..51e12d41f54 100644 --- a/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/DumperTest.php +++ b/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/DumperTest.php @@ -55,7 +55,7 @@ class DumperTest extends \PHPUnit_Framework_TestCase { $this->dumper->setIndentation(7); -$expected = <<<EOF + $expected = <<<EOF '': bar foo: '#bar' 'foo''bar': { } @@ -108,10 +108,10 @@ EOF; $expected = <<<EOF { '': bar, foo: '#bar', 'foo''bar': { }, bar: [1, foo], foobar: { foo: bar, bar: [1, foo], foobar: { foo: bar, bar: [1, foo] } } } EOF; -$this->assertEquals($expected, $this->dumper->dump($this->array, -10), '->dump() takes an inline level argument'); -$this->assertEquals($expected, $this->dumper->dump($this->array, 0), '->dump() takes an inline level argument'); + $this->assertEquals($expected, $this->dumper->dump($this->array, -10), '->dump() takes an inline level argument'); + $this->assertEquals($expected, $this->dumper->dump($this->array, 0), '->dump() takes an inline level argument'); -$expected = <<<EOF + $expected = <<<EOF '': bar foo: '#bar' 'foo''bar': { } @@ -199,6 +199,37 @@ EOF; { $this->dumper->dump(array('foo' => new A(), 'bar' => 1), 0, 0, true, false); } + + /** + * @dataProvider getEscapeSequences + */ + public function testEscapedEscapeSequencesInQuotedScalar($input, $expected) + { + $this->assertEquals($expected, $this->dumper->dump($input)); + } + + public function getEscapeSequences() + { + return array( + 'null' => array("\t\\0", '"\t\\\\0"'), + 'bell' => array("\t\\a", '"\t\\\\a"'), + 'backspace' => array("\t\\b", '"\t\\\\b"'), + 'horizontal-tab' => array("\t\\t", '"\t\\\\t"'), + 'line-feed' => array("\t\\n", '"\t\\\\n"'), + 'vertical-tab' => array("\t\\v", '"\t\\\\v"'), + 'form-feed' => array("\t\\f", '"\t\\\\f"'), + 'carriage-return' => array("\t\\r", '"\t\\\\r"'), + 'escape' => array("\t\\e", '"\t\\\\e"'), + 'space' => array("\t\\ ", '"\t\\\\ "'), + 'double-quote' => array("\t\\\"", '"\t\\\\\\""'), + 'slash' => array("\t\\/", '"\t\\\\/"'), + 'backslash' => array("\t\\\\", '"\t\\\\\\\\"'), + 'next-line' => array("\t\\N", '"\t\\\\N"'), + 'non-breaking-space' => array("\t\\�", '"\t\\\\�"'), + 'line-separator' => array("\t\\L", '"\t\\\\L"'), + 'paragraph-separator' => array("\t\\P", '"\t\\\\P"'), + ); + } } class A diff --git a/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/YtsBasicTests.yml b/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/YtsBasicTests.yml index ac0efa88d1a..dfd93021d18 100644 --- a/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/YtsBasicTests.yml +++ b/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/YtsBasicTests.yml @@ -11,6 +11,30 @@ yaml: | php: | array('apple', 'banana', 'carrot') --- +test: Sequence With Item Being Null In The Middle +brief: | + You can specify a list in YAML by placing each + member of the list on a new line with an opening + dash. These lists are called sequences. +yaml: | + - apple + - + - carrot +php: | + array('apple', null, 'carrot') +--- +test: Sequence With Last Item Being Null +brief: | + You can specify a list in YAML by placing each + member of the list on a new line with an opening + dash. These lists are called sequences. +yaml: | + - apple + - banana + - +php: | + array('apple', 'banana', null) +--- test: Nested Sequences brief: | You can include a sequence within another diff --git a/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/InlineTest.php b/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/InlineTest.php index affe4f9c23e..96afb6bb225 100644 --- a/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/InlineTest.php +++ b/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/InlineTest.php @@ -147,6 +147,24 @@ class InlineTest extends \PHPUnit_Framework_TestCase $this->assertSame(array($foo), Inline::parse('[*foo]', false, false, array('foo' => $foo))); } + /** + * @expectedException \Symfony\Component\Yaml\Exception\ParseException + * @expectedExceptionMessage A reference must contain at least one character. + */ + public function testParseUnquotedAsterisk() + { + Inline::parse('{ foo: * }'); + } + + /** + * @expectedException \Symfony\Component\Yaml\Exception\ParseException + * @expectedExceptionMessage A reference must contain at least one character. + */ + public function testParseUnquotedAsteriskFollowedByAComment() + { + Inline::parse('{ foo: * #foo }'); + } + protected function getTestsForParse() { return array( @@ -210,7 +228,7 @@ class InlineTest extends \PHPUnit_Framework_TestCase '[foo, {bar: foo, foo: [foo, {bar: foo}]}, [foo, {bar: foo}]]' => array('foo', array('bar' => 'foo', 'foo' => array('foo', array('bar' => 'foo'))), array('foo', array('bar' => 'foo'))), '[foo, bar: { foo: bar }]' => array('foo', '1' => array('bar' => array('foo' => 'bar'))), - '[foo, \'@foo.baz\', { \'%foo%\': \'foo is %foo%\', bar: \'%foo%\' }, true, \'@service_container\']' => array('foo', '@foo.baz', array('%foo%' => 'foo is %foo%', 'bar' => '%foo%',), true, '@service_container',), + '[foo, \'@foo.baz\', { \'%foo%\': \'foo is %foo%\', bar: \'%foo%\' }, true, \'@service_container\']' => array('foo', '@foo.baz', array('%foo%' => 'foo is %foo%', 'bar' => '%foo%'), true, '@service_container'), ); } @@ -257,7 +275,7 @@ class InlineTest extends \PHPUnit_Framework_TestCase '[foo, { bar: foo, foo: [foo, { bar: foo }] }, [foo, { bar: foo }]]' => array('foo', array('bar' => 'foo', 'foo' => array('foo', array('bar' => 'foo'))), array('foo', array('bar' => 'foo'))), - '[foo, \'@foo.baz\', { \'%foo%\': \'foo is %foo%\', bar: \'%foo%\' }, true, \'@service_container\']' => array('foo', '@foo.baz', array('%foo%' => 'foo is %foo%', 'bar' => '%foo%',), true, '@service_container',), + '[foo, \'@foo.baz\', { \'%foo%\': \'foo is %foo%\', bar: \'%foo%\' }, true, \'@service_container\']' => array('foo', '@foo.baz', array('%foo%' => 'foo is %foo%', 'bar' => '%foo%'), true, '@service_container'), ); } } diff --git a/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/ParserTest.php b/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/ParserTest.php index 9480a21f95a..da248d7dec0 100644 --- a/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/ParserTest.php +++ b/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/ParserTest.php @@ -405,7 +405,7 @@ foo: |- EOF; $expected = array( - 'foo' => "\n\nbar" + 'foo' => "\n\nbar", ); $this->assertSame($expected, $this->parser->parse($yaml)); @@ -449,7 +449,7 @@ EOF; $yamls = array( iconv("UTF-8", "ISO-8859-1", "foo: 'äöüß'"), iconv("UTF-8", "ISO-8859-15", "euro: '€'"), - iconv("UTF-8", "CP1252", "cp1252: '©ÉÇáñ'") + iconv("UTF-8", "CP1252", "cp1252: '©ÉÇáñ'"), ); foreach ($yamls as $yaml) { @@ -458,7 +458,7 @@ EOF; $this->fail('charsets other than UTF-8 are rejected.'); } catch (\Exception $e) { - $this->assertInstanceOf('Symfony\Component\Yaml\Exception\ParseException', $e, 'charsets other than UTF-8 are rejected.'); + $this->assertInstanceOf('Symfony\Component\Yaml\Exception\ParseException', $e, 'charsets other than UTF-8 are rejected.'); } } } diff --git a/vendor/symfony/yaml/Symfony/Component/Yaml/Unescaper.php b/vendor/symfony/yaml/Symfony/Component/Yaml/Unescaper.php index b47d4a59285..50b1018c404 100644 --- a/vendor/symfony/yaml/Symfony/Component/Yaml/Unescaper.php +++ b/vendor/symfony/yaml/Symfony/Component/Yaml/Unescaper.php @@ -130,12 +130,12 @@ class Unescaper return chr($c); } if (0x800 > $c) { - return chr(0xC0 | $c>>6).chr(0x80 | $c & 0x3F); + return chr(0xC0 | $c >> 6).chr(0x80 | $c & 0x3F); } if (0x10000 > $c) { - return chr(0xE0 | $c>>12).chr(0x80 | $c>>6 & 0x3F).chr(0x80 | $c & 0x3F); + return chr(0xE0 | $c >> 12).chr(0x80 | $c >> 6 & 0x3F).chr(0x80 | $c & 0x3F); } - return chr(0xF0 | $c>>18).chr(0x80 | $c>>12 & 0x3F).chr(0x80 | $c>>6 & 0x3F).chr(0x80 | $c & 0x3F); + return chr(0xF0 | $c >> 18).chr(0x80 | $c >> 12 & 0x3F).chr(0x80 | $c >> 6 & 0x3F).chr(0x80 | $c & 0x3F); } } -- GitLab