Skip to content

Commit 2aa1b44

Browse files
committed
bootstrap tests
1 parent f6ff000 commit 2aa1b44

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

phpunit.xml.dist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
processIsolation="false"
1010
stopOnFailure="false"
1111
syntaxCheck="false"
12-
bootstrap="vendor/autoload.php"
12+
bootstrap="tests/bootstrap.php"
1313
>
1414
<testsuites>
1515
<testsuite name="OneSignal Tests">
16-
<directory>./tests</directory>
16+
<directory>./tests/OneSignal/</directory>
1717
</testsuite>
1818
</testsuites>
1919
</phpunit>

tests/OneSignalTest.php renamed to tests/OneSignal/Tests/OneSignalTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?php
2-
32
namespace OneSignal\Tests;
43

54
use OneSignal\OneSignal;
@@ -9,6 +8,9 @@
98
*/
109
class OneSignalTest extends \PHPUnit_Framework_TestCase
1110
{
11+
/**
12+
* @var OneSignal
13+
*/
1214
private $api;
1315

1416
public function setUp()

tests/bootstrap.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
3+
$loader = require_once __DIR__ . '/../vendor/autoload.php';
4+
$loader->add('OneSignal\Tests', __DIR__);
5+
$loader->register();

0 commit comments

Comments
 (0)