Skip to content
This repository

Fixing defined syntax error - missing quotes #1176

Merged
merged 1 commit into from about 2 years ago

2 participants

ianmacl Louis Landry
ianmacl
Owner

defined expects the constant name to be a string and not the evaluated value of the constant.

Louis Landry LouisLandry merged commit b26781a into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Apr 30, 2012
ianmacl ianmacl Fixing defined syntax error - missing quotes 1b5d116
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  tests/suites/unit/joomla/http/JHttpTransportTest.php
2  tests/suites/unit/joomla/http/JHttpTransportTest.php
@@ -36,7 +36,7 @@ protected function setUp()
36 36 }
37 37 else
38 38 {
39   - $this->stubUrl = defined(JTEST_HTTP_STUB) ? JTEST_HTTP_STUB : getenv('JTEST_HTTP_STUB');
  39 + $this->stubUrl = defined('JTEST_HTTP_STUB') ? JTEST_HTTP_STUB : getenv('JTEST_HTTP_STUB');
40 40 }
41 41 }
42 42

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.