protected function get_wp_version()
	{
		$this->getSession()->visit( $this->locatePath( '/' ) );
		$page = $this->getSession()->getPage();
		$meta = $page->find( 'css', "meta[name=generator]" );
		if ( $meta ) {
			$version = $meta->getAttribute( "content" );
			if ( $version ) {
				return str_replace( "WordPress ", "", $version );
			}
		}

		throw new \Exception( "No version number found" );
	}
protected function get_wp_version()
	{
		$this->getSession()->visit( $this->locatePath( '/' ) );
		$page = $this->getSession()->getPage();
		$meta = $page->find( 'css', "meta[name=generator]" );
		if ( $meta ) {
			$version = $meta->getAttribute( "content" );
			if ( $version ) {
				return str_replace( "WordPress ", "", $version );
			}
		}

		throw new \Exception( "No version number found" );
	}
protected function get_wp_version ( ) { $ this -> getSession ( ) -> visit ( $ this -> locatePath ( '/' ) ) ; $ page = $ this -> getSession ( ) -> getPage ( ) ; $ meta = $ page -> find ( 'css' , "meta[name=generator]" ) ; if ( $ meta ) { $ version = $ meta -> getAttribute ( "content" ) ; if ( $ version ) { return str_replace ( "WordPress " , "" , $ version ) ; } } throw new \ Exception ( "No version number found" ) ; }
Get the WordPress version from meta.

@return string WordPress version number.
@throws \Exception
Get the WordPress version from meta .