Skip to content

Instantly share code, notes, and snippets.

@hellofromtonya
Last active February 1, 2017 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hellofromtonya/49045753b81db420b48e4c6c56c32c79 to your computer and use it in GitHub Desktop.
Save hellofromtonya/49045753b81db420b48e4c6c56c32c79 to your computer and use it in GitHub Desktop.
Building Tests with Dots and Variables
<?php
// Session 1
d( get_template_directory() );
ddd( get_template_directory() . '/lib/init.php' );
// Session 2
d( $parent_theme_directory );
ddd( $parent_theme_directory . '/lib/init.php' );
// Session 3
$suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
d( get_stylesheet_directory_uri() );
d( $suffix );
d( '/js/responsive-menus{$suffix}.js' );
d( "/js/responsive-menus{$suffix}.js" );
ddd( get_stylesheet_directory_uri() . "/js/responsive-menus{$suffix}.js" );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment