public function testCreateNotificationFromAttributes() { $notification = PaymentNotification::fromAttributes(array('url' => 'https://www.example.net/payplug_notification.html', 'response_code' => 200)); $this->assertEquals('https://www.example.net/payplug_notification.html', $notification->url); $this->assertEquals(200, $notification->response_code); }