web/wp-content/plugins/ghost-runner/src/Runner.php
/**
	 * Run all tests and return as array
	 *
	 * @param null|string $rootUrl Optional. URL for site to run on. If not the current value of $this->rootUrl is used.
	 *
	 * @return array
	 */
Run all tests and return as array
@param null|string $rootUrl Optional. URL for site to run on. If not the current value of $this->rootUrl is used.

@return array
Run all tests and return as array @param null|string $rootUrl Optional . URL for site to run on . If not the current value of $this - > rootUrl is used . @return array
public function toArray( $rootUrl = null )
	{
		if ( $rootUrl ) {
			$this->setRootUrl( $rootUrl );
		}
		$results = $this->allTests();
		$resultUrls = array();
		foreach ( $results as $result ) {
			$resultUrls[] = esc_url_raw( add_query_arg( array(
					'id'  => $result,
					'key' => $this->container->getLocalApiKey()
				), rest_url( 'ghost-runner/v1/tests/result' ) ) );
		}
		return  array(
				'testIds'    => $results,
				'resultUrls' => $resultUrls
		);
	}
public function toArray ( $ rootUrl = null ) { if ( $ rootUrl ) { $ this -> setRootUrl ( $ rootUrl ) ; } $ results = $ this -> allTests ( ) ; $ resultUrls = array ( ) ; foreach ( $ results as $ result ) { $ resultUrls [ ] = esc_url_raw ( add_query_arg ( array ( 'id' => $ result , 'key' => $ this -> container -> getLocalApiKey ( ) ) , rest_url ( 'ghost-runner/v1/tests/result' ) ) ) ; } return array ( 'testIds' => $ results , 'resultUrls' => $ resultUrls ) ; }
Run all tests and return as array
 @param null|string $rootUrl Optional.
Run all tests and return as array @param null|string $rootUrl Optional .