Example #1
0
 /**
  * Test for existence of some namespaces.
  * @return void
  */
 public function testHasNamespace()
 {
     $this->assertFalse($this->session->hasNamespace('trees'), 'hasNamespace() should have returned FALSE for a namespace with no keys set');
     $s = $this->session->getNamespace('trees');
     $this->assertFalse($this->session->hasNamespace('trees'), 'hasNamespace() should have returned FALSE for a namespace with no keys set');
     $s->hello = 'world';
     $this->assertTrue($this->session->hasNamespace('trees'), 'hasNamespace() should have returned TRUE for a namespace with keys set');
 }