public function testSetData() { $this->assertEquals($this->jsonStore->toArray(), json_decode($this->json, true)); $new = ['a' => 'b']; $this->jsonStore->setData($new); $this->assertEquals($this->jsonStore->toArray(), $new); $this->assertNotEquals($this->jsonStore->toArray(), json_decode($this->json, true)); }