/** * @test */ public function shouldAllowSetModelAndKeepTokenSame() { $token = new Token(); $request = new SecuredNotifyRequest($notification = array(), $token); //guard $this->assertSame($token, $request->getToken()); $this->assertSame($token, $request->getModel()); $newModel = new \stdClass(); $request->setModel($newModel); $this->assertSame($token, $request->getToken()); $this->assertSame($newModel, $request->getModel()); }