Skip to content
This repository has been archived by the owner on Sep 23, 2020. It is now read-only.

Commit

Permalink
updated proxy manager to be compatible with PHP7 (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
danrot authored and chirimoya committed May 22, 2017
1 parent b5a52cc commit 4a5462f
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ CHANGELOG for Sulu Document Manager
===================================

* dev-develop
* BUGFIX #113 Updated ProxyManager to be compatible with PHP 7
* BUGFIX #112 Fixed overwrite of exist created date.
* ENHANCEMENT #110 Added node-name-slugifier to centralice additional node name replacer
* ENHANCEMENT #109 Added metadata to configure remove-live
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"symfony/config": "~2.8 || ~3.0",
"symfony/options-resolver": "~2.8 || ~3.0",
"symfony-cmf/slugifier-api": "~1.0",
"ocramius/proxy-manager": "~1.0",
"ocramius/proxy-manager": "~1.0 | ~2.0",
"aferrandini/urlizer": "~1.0.0"
},
"require-dev": {
Expand Down
44 changes: 43 additions & 1 deletion tests/Unit/ProxyFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,46 @@

class ProxyFactoryTest extends \PHPUnit_Framework_TestCase
{
/**
* @var NodeInterface
*/
private $node;

/**
* @var NodeInterface
*/
private $parentNode;

/**
* @var MetadataFactoryInterface
*/
private $metadataFactory;

/**
* @var Metadata\
*/
private $metadata;

/**
* @var DocumentRegistry
*/
private $documentRegistry;

/**
* @var EventDispatcherInterface
*/
private $dispatcher;

/**
* @var LazyLoadingGhostFactory
*/
private $proxyFactory;

/**
* @var TestProxyDocument
*/
private $document;

/**
* @var ProxyFactory
*/
Expand Down Expand Up @@ -152,8 +192,10 @@ public function setParent($parent)

class TestProxyDocumentProxy
{
private $title = 'Hello';

public function getTitle()
{
return 'Hello';
return $this->title;
}
}

0 comments on commit 4a5462f

Please sign in to comment.