public function testEmptySelfLink() { $fixture = <<<'EOF' { "data": "value" } EOF; $parent = new Resource('', array('data' => 'value')); $this->assertEquals(json_decode($fixture), json_decode((string) $parent)); }