Skip to content

Commit b851eac

Browse files
committed
Adjusted comments and added phpunit
1 parent e1392da commit b851eac

File tree

2 files changed

+28
-5
lines changed

2 files changed

+28
-5
lines changed

phpunit.xml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<phpunit colors="true"
4+
convertErrorsToExceptions="true"
5+
convertNoticesToExceptions="true"
6+
convertWarningsToExceptions="true"
7+
processIsolation="false"
8+
stopOnFailure="false"
9+
bootstrap="vendor/autoload.php"
10+
>
11+
12+
<testsuites>
13+
<testsuite name="php-xdg-base-dir unit tests">
14+
<directory>./tests/</directory>
15+
</testsuite>
16+
</testsuites>
17+
18+
<filter>
19+
<whitelist>
20+
<directory>./src/</directory>
21+
</whitelist>
22+
</filter>
23+
</phpunit>

src/Contracts/ReviewRateable.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,11 @@ public function rating($data, Model $author, Model $parent = null);
108108
public function updateRating($id, $data, Model $parent = null);
109109

110110
/**
111-
*
112-
* @param $id
113-
* @param $sort
114-
* @return mixed
115-
*/
111+
*
112+
* @param $id
113+
* @param $sort
114+
* @return mixed
115+
*/
116116
public function getAllRatings($id, $sort = 'desc');
117117

118118
/**

0 commit comments

Comments
 (0)