methodIsMockable() public method

public methodIsMockable ( reflectionMethod $method )
$method reflectionMethod
コード例 #1
0
ファイル: generator.php プロジェクト: ivannis/atoum
 /** @php >= 7.0 */
 public function testMethodIsMockableWithReservedWordPhp7($reservedWord)
 {
     $this->if($generator = new testedClass())->and($this->mockGenerator->orphanize('__construct'))->and($method = new \mock\reflectionMethod($this, $reservedWord))->and($this->calling($method)->getName = $reservedWord)->and($this->calling($method)->isFinal = false)->and($this->calling($method)->isStatic = false)->and($this->calling($method)->isAbstract = false)->and($this->calling($method)->isPrivate = false)->and($this->calling($method)->isProtected = false)->then->boolean($generator->methodIsMockable($method))->isFalse();
 }