forked from parse-community/parse-php-sdk
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathParseSubclassTest.php
More file actions
37 lines (29 loc) · 821 Bytes
/
Copy pathParseSubclassTest.php
File metadata and controls
37 lines (29 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
use Parse\ParseQuery;
use Parse\ParsePush;
use Parse\ParseInstallation;
use Parse\ParseObject;
require_once 'ParseTestHelper.php';
class ParseSubclassTest extends PHPUnit_Framework_TestCase
{
public static function setUpBeforeClass()
{
ParseTestHelper::setUp();
}
public function tearDown()
{
ParseTestHelper::tearDown();
}
public function testCreateFromSubclass()
{
$install = new ParseInstallation();
$this->assertTrue($install instanceof ParseInstallation);
$this->assertTrue(is_subclass_of($install, 'Parse\ParseObject'));
}
public function testCreateFromParseObject()
{
$install = ParseObject::create("_Installation");
$this->assertTrue($install instanceof ParseInstallation);
$this->assertTrue(is_subclass_of($install, 'Parse\ParseObject'));
}
}