forked from parse-community/parse-php-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathParseSubclassTest.php
More file actions
33 lines (27 loc) · 802 Bytes
/
Copy pathParseSubclassTest.php
File metadata and controls
33 lines (27 loc) · 802 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
<?php
namespace Parse\Test;
use Parse\ParseInstallation;
use Parse\ParseObject;
class ParseSubclassTest extends \PHPUnit_Framework_TestCase
{
public static function setUpBeforeClass()
{
Helper::setUp();
}
public function tearDown()
{
Helper::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'));
}
}