Beispiel #1
0
 /**
  *
  */
 public function testGetValue()
 {
     $meta = new Meta('Test\\Class', $this->meta['good']);
     $this->assertEquals($meta->getValue('type'), 'type');
     $this->assertEquals($meta->getValue('subtype'), 'subtype');
     $this->assertEquals($meta->getValue('null'), NULL);
     $this->assertEquals($meta->getValue('array'), array('test'));
     $this->assertEquals($meta->getValue('object'), (object) array('property' => 'property'));
 }
 public function rejectInlineSpreecast(Errors &$errors, Meta &$meta)
 {
     if (stristr((string) $meta->getValue(), 'iframe id="spreecast-player"') !== false) {
         $errors->reject('You cannot embed Spreecast players inline, use the provided fields and input [[spreecast]] into the contents instead.');
     }
 }