mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-30 19:50:12 +02:00
On to PHP7^!
This commit is contained in:
25
Structural/Proxy/Tests/ProxyTest.php
Normal file
25
Structural/Proxy/Tests/ProxyTest.php
Normal 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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user