public function testBadIndexAccess() { $r = new Registry(); $this->assertNull($r->nothing_here); $this->assertEquals(12345, $r->offsetGet('nothing_here', 12345)); }