Exemplo n.º 1
0
	/**
	 * @test
	 * @expectedException \LogicException
	 * @expectedExceptionCode 1414513947
	 */
	public function specificExceptionsCanBeIgnoredByExceptionHandler() {
		$contentObjectFixture = $this->createContentObjectThrowingExceptionFixture();

		$configuration = array(
			'exceptionHandler' => '1',
			'exceptionHandler.' => array(
				'ignoreCodes.' => array('10.' => '1414513947'),
			)
		);

		$this->subject->render($contentObjectFixture, $configuration);
	}
Exemplo n.º 2
0
 /**
  * Render the flag image for autorenderer
  *
  * @param array $language
  * @return string
  */
 protected function getFlagImage(array $language)
 {
     $conf = ['file' => $language['flagSrc'], 'altText' => $language['label'], 'titleText' => $language['label']];
     return $this->cObj->render($this->cObj->getContentObject('IMAGE'), $conf);
 }