Skip to content

Commit

Permalink
Update unit tests:
Browse files Browse the repository at this point in the history
- add declare(strict_types = 1);
  • Loading branch information
webeweb committed Apr 5, 2024
1 parent e6c8c6c commit 0fd0e9f
Show file tree
Hide file tree
Showing 43 changed files with 86 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/AbstractTestCase.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Api/RequestInterfaceTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Fixtures/Model/TestMedia.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Fixtures/Provider/TestApiProvider.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Fixtures/Provider/TestProvider.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Fixtures/Response/TestMediaResponse.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Fixtures/Response/TestResponse.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Fixtures/Traits/Strings/TestStringNextPageTrait.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Fixtures/Traits/Strings/TestStringPrevPageTrait.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Model/AbstractMediaTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Model/CollectionTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Model/PhotoTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Model/SourceTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Model/UserTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Model/VideoFileTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Model/VideoPictureTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Model/VideoTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Provider/AbstractProviderTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Provider/ApiProviderTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Request/CollectionRequestTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Request/CollectionsRequestTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Request/CuratedPhotosRequestTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Request/GetPhotoRequestTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Request/GetVideoRequestTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Request/PopularVideosRequestTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Request/SearchPhotosRequestTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Request/SearchVideosRequestTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Response/AbstractMediaResponseTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Response/AbstractResponseTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Response/CollectionResponseTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Response/CollectionsResponseTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Response/PhotoResponseTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Response/PhotosResponseTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Response/VideoResponseTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Response/VideosResponseTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Serializer/RequestSerializerTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Serializer/ResponseDeserializerTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Traits/Integers/IntegerTotalResultsTraitTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Traits/Strings/StringNextPageTraitTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Traits/Strings/StringPrevPageTraitTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/autoload.php.dist
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the pexels-library package.
*
Expand Down

0 comments on commit 0fd0e9f

Please sign in to comment.