public function testGetRawValue() { $safe = new SafeDecorator('foo'); $this->assertEquals('foo', $safe->getRawValue(), '->getValue() returns the embedded value'); }
public function testMagicCall() { $safe = new SafeDecorator(new TestClass2()); $this->assertEquals('ok', $safe->doSomething(), '->__call() invokes the embedded method'); }