$def =
new Definition('stdClass'
);
$this->
assertFalse($def->
isPublic(), '->isPublic() returns false by default'
);
$this->
assertSame($def,
$def->
setPublic(true
), '->setPublic() implements a fluent interface'
);
$this->
assertTrue($def->
isPublic(), '->isPublic() returns true if the service is public.'
);
} public function testSetIsSynthetic() { $def =
new Definition('stdClass'
);
$this->
assertFalse($def->
isSynthetic(), '->isSynthetic() returns false by default'
);
$this->
assertSame($def,
$def->
setSynthetic(true
), '->setSynthetic() implements a fluent interface'
);
$this->
assertTrue($def->
isSynthetic(), '->isSynthetic() returns true if the service is synthetic.'
);
} public function testSetIsLazy() { $def =
new Definition('stdClass'
);
$this->
assertFalse($def->
isLazy(), '->isLazy() returns false by default'
);
$this->
assertSame($def,
$def->
setLazy(true
), '->setLazy() implements a fluent interface'
);
$this->
assertTrue($def->
isLazy(), '->isLazy() returns true if the service is lazy.'
);
}