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 22// Copyright 1999-2019. Plesk International GmbH.
33namespace PleskXTest ;
44
5- use PleskX \Api \Struct \PhpHandler \Info ;
6-
75class PhpHandlerTest extends TestCase
86{
97 public function testGet ()
108 {
119 $ handler = static ::$ _client ->phpHandler ()->get (null , null );
1210
13- $ this ->assertInstanceOf (Info::class, $ handler );
11+ $ this ->assertIsObject ($ handler );
12+ $ this ->assertObjectHasAttribute ('type ' , $ handler );
1413 }
1514
1615 public function testGetAll ()
@@ -21,7 +20,9 @@ public function testGetAll()
2120 $ this ->assertNotEmpty ($ handlers );
2221
2322 $ handler = current ($ handlers );
24- $ this ->assertInstanceOf (Info::class, $ handler );
23+
24+ $ this ->assertIsObject ($ handler );
25+ $ this ->assertObjectHasAttribute ('type ' , $ handler );
2526 }
2627
2728 /**
Original file line number Diff line number Diff line change @@ -133,7 +133,6 @@ public function testGet()
133133 $ webspace = static ::_createWebspace ();
134134 $ webspaceInfo = static ::$ _client ->webspace ()->get ('id ' , $ webspace ->id );
135135
136- $ this ->assertInstanceOf (\PleskX \Api \Struct \Webspace \GeneralInfo::class, $ webspaceInfo );
137136 $ this ->assertNotEmpty ($ webspaceInfo ->name );
138137 $ this ->assertEquals (0 , $ webspaceInfo ->realSize );
139138 }
You can’t perform that action at this time.
0 commit comments