public function putDoesNotOverwriteValue()
 {
     $this->session->initialize(null);
     $fixture = new \lang\Object();
     $hash = $fixture->hashCode();
     $this->session->putValue('foo', $fixture);
     $this->assertClass($fixture, 'lang.Object');
     $this->assertEquals($hash, $fixture->hashCode());
 }
Ejemplo n.º 2
0
 public function toStringMethod()
 {
     $o = new \lang\Object();
     $this->assertEquals('lang.Object {' . "\n" . '  __id => "' . $o->hashCode() . '"' . "\n" . '}', $o->toString());
 }