Where is PHPUnit_Framework_MockObject_MockObject class?



  • Phpstorm doesn't see the file, I don't find it, if anyone can look through this class, write where it's lying, everything that doesn't light up, starts to piss =



  • Add the archive. PHPUnit.phar in an external library path, at the bottom of a proecta tree. And he'll download the files from the archives.

    From the comments to light these variables, dockblock php should be used.

    for example

    $doctrine = $this->addDoctrineService();
    $doctrine->expects()..etc...
    

    for start-up the class that has a variable by get_class

    var_dump(get_class($doctrine));
    

    Acceptable PHPUnit_Framework_MockObject_MockObject That's what you write.

    /** @var PHPUnit_Framework_MockObject_MockObject $doctrine **/
    $doctrine = $this->addDoctrineService();
    

    It's also a method to write block docks, for example.

    /**
     * @return Class_Name_For_Use
     */
     public function returnClassName()
     { 
        return $object;
     }
    

    Read the php-doc the more the code is documented the more phpstorm will say.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2