Skip to content

Commit

Permalink
Reflect ReflectionClass -> ClassReflection
Browse files Browse the repository at this point in the history
  • Loading branch information
sasezaki committed Oct 25, 2011
1 parent bf23582 commit ad2b820
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions library/Zend/Tool/Framework/Provider/Signature.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* The purpose of Zend\Tool\Framework\Provider\Signature is to derive
* callable signatures from the provided provider.
*
* @uses \Zend\Reflection\ReflectionClass
* @uses \Zend\Code\Reflection\ClassReflection
* @uses \Zend\Tool\Framework\Action\Base
* @uses \Zend\Tool\Framework\Provider\Exception
* @uses \Zend\Tool\Framework\RegistryEnabled
Expand Down Expand Up @@ -73,7 +73,7 @@ class Signature implements RegistryEnabled
protected $_actions = array();

/**
* @var \Zend\Reflection\ReflectionClass
* @var \Zend\Code\Reflection\ClassReflection
*/
protected $_providerReflection = null;

Expand All @@ -90,7 +90,7 @@ class Signature implements RegistryEnabled
public function __construct(Provider $provider)
{
$this->_provider = $provider;
$this->_providerReflection = new \Zend\Reflection\ReflectionClass($provider);
$this->_providerReflection = new \Zend\Code\Reflection\ClassReflection($provider);
}

/**
Expand All @@ -117,7 +117,7 @@ public function process()
/**
* getName() of the provider
*
* @return unknown
* @return string
*/
public function getName()
{
Expand All @@ -137,7 +137,7 @@ public function getProvider()
/**
* getProviderReflection()
*
* @return \Zend\Reflection\ReflectionClass
* @return \Zend\Code\Reflection\ClassReflection
*/
public function getProviderReflection()
{
Expand Down
6 changes: 3 additions & 3 deletions tests/Zend/Tool/Framework/Provider/SignatureTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
* @namespace
*/
namespace ZendTest\Tool\Framework\Provider;
use Zend\Tool\Framework\Provider;
use Zend\Tool\Framework\Action;
use Zend\Tool\Framework\Provider,
Zend\Tool\Framework\Action;

/**
* @category Zend
Expand Down Expand Up @@ -92,7 +92,7 @@ public function testGetProviderReflectionWillReturnZendReflectionClassObject()
$signature = new Provider\Signature(new \ZendTest\Tool\Framework\Provider\TestAsset\ProviderOne());
$signature->setRegistry($this->_registry);
$signature->process();
$this->assertTrue($signature->getProviderReflection() instanceof \Zend\Reflection\ReflectionClass);
$this->assertTrue($signature->getProviderReflection() instanceof \Zend\Code\Reflection\ClassReflection);
}

public function testGetSpecialtiesReturnsParsedSpecialties()
Expand Down

0 comments on commit ad2b820

Please sign in to comment.