Example #1
0
 public function testParentContext()
 {
     $this->assertFalse($this->object->hasParent());
     $this->assertInstanceOf('Fwk\\Core\\Context', $newCtx = $this->object->newParent());
     $this->assertNotEquals($newCtx, $this->object);
     $this->assertEquals($newCtx->getParent(), $this->object);
     $this->assertTrue($newCtx->hasParent());
 }