$def = new BooleanNodeDefinition('foo');
$def->cannotBeEmpty();
}
+
+ public function testSetDeprecated()
+ {
+ $def = new BooleanNodeDefinition('foo');
+ $def->setDeprecated('The "%path%" node is deprecated.');
+
+ $node = $def->getNode();
+
+ $this->assertTrue($node->isDeprecated());
+ $this->assertSame('The "foo" node is deprecated.', $node->getDeprecationMessage($node->getName(), $node->getPath()));
+ }
}