/** * @test */ public function shouldAllowGetNotificationSetInConstructor() { $expectedNotification = array('foo' => 'aFooValue', 'bar' => 'aBarValue'); $request = new Notify($expectedNotification); $this->assertSame($expectedNotification, $request->getNotification()); }
/** * @param Notify $request * * @return boolean */ public function supports($request) { return $request instanceof Notify && is_array($request->getNotification()); }