示例#1
0
 /**
  * @param  string  $pathPart
  * @param  string  $constantName
  * @test
  * @dataProvider  getConstants
  */
 public function pathesShouldBeBoundAsConstant($pathPart, $constantName)
 {
     $binder = new Binder();
     $runtime = new Runtime($this->environment);
     $runtime->configure($binder, $this->root->url());
     assert($binder->getInjector()->getConstant($constantName), equals($this->getProjectPath($pathPart)));
 }