public function repeatedCalls()
 {
     $object = new \lang\Object();
     $stringRep = $object->toString();
     $this->assertEquals($stringRep, \xp::stringOf($object), 'first');
     $this->assertEquals($stringRep, \xp::stringOf($object), 'second');
 }
 public function missingMethodInvocation()
 {
     $o = new \lang\Object();
     $o->run();
 }
 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());
 }