assertTrue( class_exists( 'WPDO_CLI_HivePress' ) ); $expected = array( 'detect', 'score', 'doctor', 'migrate', 'rollback', 'benchmark' ); foreach ( $expected as $method ) { $this->assertTrue( method_exists( 'WPDO_CLI_HivePress', $method ), sprintf( 'Method %s missing on WPDO_CLI_HivePress', $method ) ); } } public function test_set_state_helper_is_private(): void { $reflect = new ReflectionClass( WPDO_CLI_HivePress::class ); $this->assertTrue( $reflect->hasMethod( 'set_state' ) ); $method = $reflect->getMethod( 'set_state' ); $this->assertTrue( $method->isPrivate() ); } }