Skip to content

Commit ab774ad

Browse files
committed
Initial test setup (PhpUnit)
1 parent f06d5dd commit ab774ad

30 files changed

+531
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
vendor

composer.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
"PHPShopify\\": "lib/"
2121
}
2222
},
23-
"minimum-stability": "dev",
24-
"prefer-stable": true
23+
"autoload-dev": {
24+
"psr-4": {"PHPShopify\\": "tests/"}
25+
},
26+
"require-dev": {
27+
"phpunit/phpunit": "^5.5"
28+
}
2529
}

phpunit.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<phpunit bootstrap="vendor/autoload.php" colors="true">
4+
<testsuites>
5+
<testsuite name="PHPShopify Test Suite">
6+
<directory>./tests/</directory>
7+
</testsuite>
8+
</testsuites>
9+
10+
<filter>
11+
<whitelist>
12+
<directory suffix=".php">lib/</directory>
13+
</whitelist>
14+
</filter>
15+
16+
<php>
17+
<ini name="date.timezone" value="UTC"/>
18+
</php>
19+
</phpunit>

tests/AbandonedCheckoutTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
/**
3+
* Created by PhpStorm.
4+
* @author Tareq Mahmood <tareqtms@yahoo.com>
5+
* Created at: 9/9/16 7:41 PM UTC+06:00
6+
*/
7+
8+
namespace PHPShopify;
9+
10+
11+
class AbandonedCheckoutTest extends TestSimpleResource
12+
{
13+
}

tests/ApplicationChargeTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
/**
3+
* Created by PhpStorm.
4+
* @author Tareq Mahmood <tareqtms@yahoo.com>
5+
* Created at: 9/9/16 9:59 PM UTC+06:00
6+
*/
7+
8+
namespace PHPShopify;
9+
10+
11+
class ApplicationChargeTest extends TestSimpleResource
12+
{
13+
}

tests/BlogTest.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
/**
3+
* Created by PhpStorm.
4+
* @author Tareq Mahmood <tareqtms@yahoo.com>
5+
* Created at: 9/10/16 10:43 AM UTC+06:00
6+
*/
7+
8+
namespace PHPShopify;
9+
10+
11+
class BlogTest extends TestSimpleResource
12+
{
13+
14+
}

tests/CarrierServiceTest.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
/**
3+
* Created by PhpStorm.
4+
* @author Tareq Mahmood <tareqtms@yahoo.com>
5+
* Created at: 9/10/16 10:44 AM UTC+06:00
6+
*/
7+
8+
namespace PHPShopify;
9+
10+
11+
class CarrierServiceTest extends TestSimpleResource
12+
{
13+
14+
}

tests/CollectTest.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
/**
3+
* Created by PhpStorm.
4+
* @author Tareq Mahmood <tareqtms@yahoo.com>
5+
* Created at: 9/10/16 10:44 AM UTC+06:00
6+
*/
7+
8+
namespace PHPShopify;
9+
10+
11+
class CollectTest extends TestSimpleResource
12+
{
13+
14+
}

tests/CommentTest.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
/**
3+
* Created by PhpStorm.
4+
* @author Tareq Mahmood <tareqtms@yahoo.com>
5+
* Created at: 9/10/16 10:45 AM UTC+06:00
6+
*/
7+
8+
namespace PHPShopify;
9+
10+
11+
class CommentTest extends TestSimpleResource
12+
{
13+
14+
}

tests/CountryTest.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
/**
3+
* Created by PhpStorm.
4+
* @author Tareq Mahmood <tareqtms@yahoo.com>
5+
* Created at: 9/10/16 10:45 AM UTC+06:00
6+
*/
7+
8+
namespace PHPShopify;
9+
10+
11+
class CountryTest extends TestSimpleResource
12+
{
13+
14+
}

0 commit comments

Comments
 (0)