Пример #1
0
 public function testGetRawValue()
 {
     $safe = new SafeDecorator('foo');
     $this->assertEquals('foo', $safe->getRawValue(), '->getValue() returns the embedded value');
 }
Пример #2
0
 public function testMagicCall()
 {
     $safe = new SafeDecorator(new TestClass2());
     $this->assertEquals('ok', $safe->doSomething(), '->__call() invokes the embedded method');
 }