PluginStub example


class PluginTest extends TestCase {

  /** * @covers ::__construct * @covers ::parse * @covers ::get */
  public function testGet() {
    // Assert all values are accepted through constructor and default value is     // used for non existent but defined property.     $plugin = new PluginStub([
      1 => 'oak',
      'foo' => 'bar',
      'biz' => [
        'baz' => 'boom',
      ],
      'nestedAnnotation' => new Plugin([
        'foo' => 'bar',
      ]),
    ]);
    $this->assertEquals([
      // This property wasn't in our definition but is defined as a property on
Home | Imprint | This part of the site doesn't use cookies.