Пример #1
0
 public function testStringRepresentationReflectsDoctype()
 {
     $this->view->plugin('doctype')->__invoke('HTML4_STRICT');
     $this->helper->__invoke('some content', 'foo');
     $test = $this->helper->toString();
     $this->assertNotContains('/>', $test);
     $this->assertContains('some content', $test);
     $this->assertContains('foo', $test);
 }
Пример #2
0
 /**
  * @group ZF-9743
  */
 public function testPropertyIsNotSupportedByDefaultDoctype()
 {
     try {
         $this->helper->__invoke('foo', 'og:title', 'property');
         $this->fail('meta property attribute should not be supported on default doctype');
     } catch (ViewException $e) {
         $this->assertContains('Invalid value passed', $e->getMessage());
     }
 }