Skip to content

Commit df08dcc

Browse files
committed
updating unit tests
1 parent e81f04c commit df08dcc

File tree

5 files changed

+245
-226
lines changed

5 files changed

+245
-226
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@
22
/lab/
33
composer.lock
44
.idea
5+
6+
**/temp/
7+
**/temp.*
8+
**/*.temp.*

phpunit.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/7.2/phpunit.xsd"
4+
bootstrap="vendor/autoload.php"
5+
forceCoversAnnotation="true"
6+
beStrictAboutCoversAnnotation="true"
7+
beStrictAboutOutputDuringTests="true"
8+
beStrictAboutTodoAnnotatedTests="true"
9+
verbose="true">
10+
<testsuites>
11+
<testsuite name="default">
12+
<directory suffix="Test.php">tests</directory>
13+
</testsuite>
14+
</testsuites>
15+
16+
<filter>
17+
<whitelist processUncoveredFilesFromWhitelist="true">
18+
<directory suffix=".php">src</directory>
19+
</whitelist>
20+
</filter>
21+
</phpunit>

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ or use Composer:
6161
6262
composer require salarmehr/ary
6363
64-
* The class (`Ary()`) requires PHP 5.4 or above.
65-
* The helper function (`ary()`) requires PHP 5.6 or above.
64+
* The `Ary()` requires PHP 5.4 or above.
65+
* The `ary()` helper function requires PHP 5.6 or above.
6666
6767
Licence
6868
=======

src/Ary.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,13 @@ public function only($keys, $returnArray = false)
174174
return $returnArray ? $result->toArray() : $result;
175175
}
176176

177-
/**
178-
* Get all items except for those with the specified keys.
179-
*
180-
* @param mixed $keys
181-
* @return static
182-
*/
177+
/**
178+
* Get all items except for those with the specified keys.
179+
*
180+
* @param mixed $keys
181+
* @param bool $returnArray
182+
* @return static
183+
*/
183184
public function except($keys, $returnArray = false)
184185
{
185186
$result = parent::except($keys);

0 commit comments

Comments
 (0)