/** * @depends testDeviceIsOnLine */ public function testRestartDevice(TAD $tad) { $expected_response = $this->build_expected_response('RestartResponse'); $device_ip = $tad->get_ip(); $response = $tad->restart(); sleep(2); // Lets give it a few seconds to test if it's online. $is_device_online = TAD::is_device_online($device_ip); $this->assertEquals($expected_response, $response); $this->assertNotTrue($is_device_online); }