You are here

function ClassNodeSpec::it_is_able_to_have_properties in Zircon Profile 8

Same name and namespace in other branches
  1. 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

ClassNodeSpec

Namespace

spec\Prophecy\Doubler\Generator\Node

Code

function it_is_able_to_have_properties() {
  $this
    ->addProperty('title');
  $this
    ->addProperty('text', 'private');
  $this
    ->getProperties()
    ->shouldReturn(array(
    'title' => 'public',
    'text' => 'private',
  ));
}