Ejemplo n.º 1
0
 /**
  * @test
  */
 public function shouldAllowSetModelAndKeepTokenSame()
 {
     $token = new Token();
     $request = new SecuredNotify($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());
 }