Skip to content

Commit dec76d5

Browse files
authored
use getter in isEnv (#49)
* use getter in isEnv, allows for calculating the environment from variables * update test
1 parent b938b87 commit dec76d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Cubex.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ public function setEnv($env)
504504
*/
505505
public function isEnv($env)
506506
{
507-
return $this->_env == $env;
507+
return $this->env() == $env;
508508
}
509509

510510
/**

tests/Cubex/Http/Visitor/VisitorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public function visitorProvider()
135135
[
136136
'208.67.222.222',
137137
'US',
138-
'San Francisco',
138+
'San Jose',
139139
'CA',
140140
new ConfigSection(
141141
'http_visitor',

0 commit comments

Comments
 (0)