/**
  * Class constructor.
  * @param string $functionName
  * @throws \InvalidArgumentException if an argument is not valid.
  */
 public function __construct($functionName)
 {
     Assert::isString($functionName);
     Assert::isFunctionAvailable($functionName);
     $this->callFunctionName = $functionName;
 }
Exemple #2
0
 /**
  * @covers Brickoo\Component\Common\Assert::isFunctionAvailable
  * @expectedException \InvalidArgumentException
  */
 public function testIsFunctionAvailableThrowsArgumentException()
 {
     Assert::isFunctionAvailable("doesNotExists" . time());
 }