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()); }
public function toStringMethod() { $o = new \lang\Object(); $this->assertEquals('lang.Object {' . "\n" . ' __id => "' . $o->hashCode() . '"' . "\n" . '}', $o->toString()); }