On to PHP7^!

This commit is contained in:
Dominik Liebler
2016-09-21 17:23:20 +02:00
parent a7928d010c
commit 95ad95c33e
6 changed files with 74 additions and 28 deletions

View File

@@ -0,0 +1,25 @@
<?php
namespace DesignPatterns\Structural\Proxy\Tests;
use DesignPatterns\Structural\Decorator;
use DesignPatterns\Structural\Proxy\RecordProxy;
class ProxyTest extends \PHPUnit_Framework_TestCase
{
public function testWillSetDirtyFlagInProxy()
{
$recordProxy = new RecordProxy([]);
$recordProxy->foobar = 'baz';
$this->assertTrue($recordProxy->isDirty());
}
public function testProxyIsInstanceOfRecord()
{
$recordProxy = new RecordProxy([]);
$recordProxy->foobar = 'baz';
$this->assertInstanceOf('DesignPatterns\Structural\Proxy\Record', $recordProxy);
}
}