Example #1
0
 public function testGetByTypeByRef()
 {
     $scope = new Scope();
     $scope->set('testA', new \DateTime('2012-01-01'));
     $e =& $scope->getByTypeByRef('\\DateTime');
     $this->assertNotNull($e);
     $e->setDate(2013, 05, 05);
     $this->assertEquals($scope->testA->format('Y'), 2013);
 }