function ClassNodeSpec::it_is_able_to_have_properties in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpspec/prophecy/spec/Prophecy/Doubler/Generator/Node/ClassNodeSpec.php \spec\Prophecy\Doubler\Generator\Node\ClassNodeSpec::it_is_able_to_have_properties()
File
- vendor/
phpspec/ prophecy/ spec/ Prophecy/ Doubler/ Generator/ Node/ ClassNodeSpec.php, line 134
Class
Namespace
spec\Prophecy\Doubler\Generator\NodeCode
function it_is_able_to_have_properties() {
$this
->addProperty('title');
$this
->addProperty('text', 'private');
$this
->getProperties()
->shouldReturn(array(
'title' => 'public',
'text' => 'private',
));
}