public function testJsonEncodeWorksWithContentAvailableFlag() { $body = '{"to":"deviceId","priority":"high","content_available":true}'; $this->fixture->setContentAvailable(); $this->fixture->addRecipient(new Device('deviceId')); $this->assertSame($body, json_encode($this->fixture)); }