Api
1 year ago
Net
1 year ago
Util
1 year ago
TestCase.php
1 year ago
WonderPushTest.php
1 year ago
bootstrap.no_autoload.php
1 year ago
bootstrap.php
1 year ago
check-missing-classes-in-init-php.sh
1 year ago
WonderPushTest.php
28 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WonderPush; |
| 4 | |
| 5 | class WonderPushTest extends TestCase { |
| 6 | |
| 7 | const WONDERPUSHDEMO_ACCESS_TOKEN = 'NTcxNmYzNjJiNTkyYzhmYjZmNzA2ZDA1ZjFmYTU1NTFhZmFlMzg2YTc4MmM3OGE5YTI0YjNiMzRhZDMwNDY5Yg'; |
| 8 | const WONDERPUSHDEMO_APPLICATION_ID = '01906i1feoq2cu1p'; |
| 9 | |
| 10 | protected $wp; |
| 11 | |
| 12 | /** |
| 13 | * @return WonderPush |
| 14 | */ |
| 15 | public static function getWonderPush() { |
| 16 | return new WonderPush(self::WONDERPUSHDEMO_ACCESS_TOKEN, self::WONDERPUSHDEMO_APPLICATION_ID); |
| 17 | } |
| 18 | |
| 19 | protected function setUp() { |
| 20 | $this->wp = self::getWonderPush(); |
| 21 | } |
| 22 | |
| 23 | public function testInstantiation() { |
| 24 | $this->assertInstanceOf('WonderPush\WonderPush', $this->wp); |
| 25 | } |
| 26 | |
| 27 | } |
| 28 |