Skip to content

Commit

Permalink
Add teste case for issue Ocramius#187
Browse files Browse the repository at this point in the history
  • Loading branch information
malukenho committed Oct 21, 2014
1 parent 10a871f commit df89358
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions tests/ProxyManagerTest/Factory/AbstractLazyFactoryTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?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.
*/

namespace ProxyManagerTest\Factory;
use ProxyManager\Factory\LazyLoadingValueHolderFactory;

/**
* Tests for {@see \ProxyManager\Factory\AbstractLazyFactory}
*
* @author Jefersson Nathan <malukenho@phpse.net>
* @license MIT
*
* @covers \ProxyManager\Factory\AbstractLazyFactory
* @group Coverage
*/
class AbstractLazyFactoryTest extends \PHPUnit_Framework_TestCase
{

/**
* @var LazyLoadingValueHolderFactory
*/
private $factory;

public function setUp()
{
$this->factory = new LazyLoadingValueHolderFactory();
}

public function testFinalMagicMethodWakeupCantBeReplaced()
{
$this->factory->createProxy(
'PDO',
function () {}
);

$this->assertTrue(true);
}
}

0 comments on commit df89358

Please sign in to comment.