PHP7 Proxy

This commit is contained in:
Dominik Liebler
2016-09-23 10:38:34 +02:00
parent 2e287acdf7
commit 281714cd58
3 changed files with 8 additions and 24 deletions

View File

@@ -10,7 +10,7 @@ class ProxyTest extends \PHPUnit_Framework_TestCase
public function testWillSetDirtyFlagInProxy()
{
$recordProxy = new RecordProxy([]);
$recordProxy->foobar = 'baz';
$recordProxy->username = 'baz';
$this->assertTrue($recordProxy->isDirty());
}
@@ -18,7 +18,7 @@ class ProxyTest extends \PHPUnit_Framework_TestCase
public function testProxyIsInstanceOfRecord()
{
$recordProxy = new RecordProxy([]);
$recordProxy->foobar = 'baz';
$recordProxy->username = 'baz';
$this->assertInstanceOf('DesignPatterns\Structural\Proxy\Record', $recordProxy);
}