/** * @test */ public function shouldAllowGetModelSetInConstructor() { $expectedModel = new \stdClass(); $request = new NotifyRequest(array(), $expectedModel); $this->assertSame($expectedModel, $request->getModel()); }
/** * @param array $notification * @param TokenInterface $token */ public function __construct(array $notification, TokenInterface $token) { parent::__construct($notification, $token); $this->token = $token; }