public function testSetGetConfigurator() { $def =
new Definition('stdClass'
);
$this->
assertSame($def,
$def->
setConfigurator('foo'
), '->setConfigurator() implements a fluent interface'
);
$this->
assertEquals('foo',
$def->
getConfigurator(), '->getConfigurator() returns the configurator'
);
} public function testClearTags() { $def =
new Definition('stdClass'
);
$this->
assertSame($def,
$def->
clearTags(), '->clearTags() implements a fluent interface'
);
$def->
addTag('foo',
['foo' => 'bar'
]);
$def->
clearTags();
$this->
assertEquals([],
$def->
getTags(), '->clearTags() removes all current tags'
);
} public function testClearTag() { $def =
new Definition('stdClass'
);
$this->
assertSame($def,
$def->
clearTags(), '->clearTags() implements a fluent interface'
);
$def->
addTag('1foo1',
['foo1' => 'bar1'
]);
$def->
addTag('2foo2',
['foo2' => 'bar2'
]);