Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
s/dirname(__FILE__)/__DIR__/g
Browse files Browse the repository at this point in the history
- Replaced dirname(__FILE__) calls with __DIR__ throughout the codebase
  • Loading branch information
weierophinney committed Jul 12, 2010
3 parents 73e93c4 + 954b983 + 3c1de58 commit a1ec0e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/Cloud/CloudTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function testSetPrefixPathViaOptions()
$cloud = $this->_getCloud(array(
'prefixPath' => array(
'prefix' => 'ZendTest\Tag\Cloud\TestAsset',
'path' => dirname(__FILE__) . '/TestAsset'
'path' => __DIR__ . '/TestAsset'
),
'cloudDecorator' => array(
'decorator' => 'CloudDummy1',
Expand All @@ -135,7 +135,7 @@ public function testSetPrefixPathsViaOptions()
'prefixPath' => array(
array(
'prefix' => 'ZendTest\Tag\Cloud\TestAsset',
'path' => dirname(__FILE__) . '/TestAsset'
'path' => __DIR__ . '/TestAsset'
)
),
'cloudDecorator' => array(
Expand Down Expand Up @@ -324,7 +324,7 @@ protected function _getCloud($options = null, $setPluginLoader = true)
$cloud = new Tag\Cloud($options);

if ($setPluginLoader) {
$cloud->getPluginLoader()->addPrefixPath('ZendTest\Tag\Cloud\TestAsset', dirname(__FILE__) . '/TestAsset');
$cloud->getPluginLoader()->addPrefixPath('ZendTest\Tag\Cloud\TestAsset', __DIR__ . '/TestAsset');
}

return $cloud;
Expand Down

0 comments on commit a1ec0e4

Please sign in to comment.