Exemplo n.º 1
0
 /**
  * testIsScalarTypeReturnsTrueSoundex
  *
  * @return void
  * @covers PHP_Depend_Util_Type
  * @group pdepend
  * @group pdepend::util
  * @group unittest
  */
 public function testIsScalarTypeReturnsTrueSoundex()
 {
     $this->assertTrue(PHP_Depend_Util_Type::isScalarType('Imteger'));
 }
Exemplo n.º 2
0
 /**
  * Extracts non scalar types from a field doc comment and creates a
  * matching type instance.
  *
  * @return PHP_Depend_Code_ASTClassOrInterfaceReference
  * @since 0.9.6
  */
 private function _parseFieldDeclarationClassOrInterfaceReference()
 {
     $annotations = $this->_parseVarAnnotation($this->_docComment);
     foreach ($annotations as $annotation) {
         if (PHP_Depend_Util_Type::isScalarType($annotation) === false) {
             return $this->builder->buildASTClassOrInterfaceReference($annotation);
         }
     }
     return null;
 }