Пример #1
0
<?php

require_once 'autoload.php';
$feefo = new \aw\feefo\Feefo('www.domain.com', 'password');
echo 'Feefo Integration Test';
$feefo->setOrderRef('ORDERREF')->setName('NAME')->setEmail('*****@*****.**')->setDescription('DESCRIPTION')->setServiceRating('+')->setServiceComment('COMMENT')->setCategory('CATEGORY');
echo $feefo->getCommentUrl();
Пример #2
0
 /**
  * Test an invalid service exception
  *
  * @dataProvider getServiceRatings
  */
 public function testServiceRating($rating)
 {
     $feefo = new aw\feefo\Feefo('www.feefouserdomain.com', 'feefopassword');
     $feefo->setServiceRating($rating);
     $this->assertEquals($rating, $feefo->getServiceRating()->getRating());
 }