diff options
author | Hannes Kindströmmer <hannes@kindstrommer.se> | 2017-03-20 15:50:53 +0100 |
---|---|---|
committer | Hannes Kindströmmer <hannes@kindstrommer.se> | 2017-03-20 15:50:53 +0100 |
commit | 39273c0c62edb5f3a5081cc6bbc19bf165a9b71b (patch) | |
tree | d703455e5ba0f92f3262e7b79509c6fc0c751c1c /tests/Core/ClassValidationArrayTest.php | |
parent | a35e5f80fe0a33560045d43080042609ea5a6c30 (diff) | |
download | ip1-php-sdk-39273c0c62edb5f3a5081cc6bbc19bf165a9b71b.zip ip1-php-sdk-39273c0c62edb5f3a5081cc6bbc19bf165a9b71b.tar.gz ip1-php-sdk-39273c0c62edb5f3a5081cc6bbc19bf165a9b71b.tar.bz2 |
Merge branch 'develop'
* Fixed issues generated by SensioLabsInsight.
* Added method chaining to Contact and Group.
* Added BlacklistEntry class and corresponding ProcessedComponent.
* Minimize build dependencies.
* Added missing contactsFetched() function in ProcessedGroup.
* Added more tests general tests.
* Added tests that call the API.
Diffstat (limited to 'tests/Core/ClassValidationArrayTest.php')
-rw-r--r-- | tests/Core/ClassValidationArrayTest.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/Core/ClassValidationArrayTest.php b/tests/Core/ClassValidationArrayTest.php index 33752a1..f82819a 100644 --- a/tests/Core/ClassValidationArrayTest.php +++ b/tests/Core/ClassValidationArrayTest.php @@ -4,13 +4,20 @@ * @author Hannes Kindströmmer <hannes@kindstrommer.se> * @copyright 2017 IP1 SMS * @license https://www.gnu.org/licenses/lgpl-3.0.txt LGPL-3.0 -* @version 0.1.0-beta +* @version 0.2.0-beta * @since File available since Release 0.1.0-beta * @link http://api.ip1sms.com/Help * @link https://github.com/iP1SMS/ip1-php-sdk */ + +namespace IP1\RESTClient\Test\Core; + use PHPUnit\Framework\TestCase; use IP1\RESTClient\Core\ClassValidationArray; +use \DateTime; +use \stdClass; +use \InvalidArgumentException; +use \ArrayObject; class ClassValidationArrayTest extends TestCase { @@ -46,13 +53,12 @@ class ClassValidationArrayTest extends TestCase */ public function testScalarVariables($scalarVariable) { - $this->expectException(InvalidArgumentException::class); + $this->expectException(\InvalidArgumentException::class); $array = new ClassValidationArray($scalarVariable); } /** * @dataProvider getNonEmptyValidArrays * @covers ClassValidationArray::offsetSet - * @throws InvalidArgumentException */ public function testAddWrongObjectClass($validArray) { |