File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 2
2
// Copyright 1999-2019. Plesk International GmbH.
3
3
namespace PleskXTest ;
4
4
5
- use PleskX \Api \Struct \PhpHandler \Info ;
6
-
7
5
class PhpHandlerTest extends TestCase
8
6
{
9
7
public function testGet ()
10
8
{
11
9
$ handler = static ::$ _client ->phpHandler ()->get (null , null );
12
10
13
- $ this ->assertInstanceOf (Info::class, $ handler );
11
+ $ this ->assertIsObject ($ handler );
12
+ $ this ->assertObjectHasAttribute ('type ' , $ handler );
14
13
}
15
14
16
15
public function testGetAll ()
@@ -21,7 +20,9 @@ public function testGetAll()
21
20
$ this ->assertNotEmpty ($ handlers );
22
21
23
22
$ handler = current ($ handlers );
24
- $ this ->assertInstanceOf (Info::class, $ handler );
23
+
24
+ $ this ->assertIsObject ($ handler );
25
+ $ this ->assertObjectHasAttribute ('type ' , $ handler );
25
26
}
26
27
27
28
/**
Original file line number Diff line number Diff line change @@ -133,7 +133,6 @@ public function testGet()
133
133
$ webspace = static ::_createWebspace ();
134
134
$ webspaceInfo = static ::$ _client ->webspace ()->get ('id ' , $ webspace ->id );
135
135
136
- $ this ->assertInstanceOf (\PleskX \Api \Struct \Webspace \GeneralInfo::class, $ webspaceInfo );
137
136
$ this ->assertNotEmpty ($ webspaceInfo ->name );
138
137
$ this ->assertEquals (0 , $ webspaceInfo ->realSize );
139
138
}
You can’t perform that action at this time.
0 commit comments