示例#1
0
 /**
  * Initializes context.
  *
  * Every scenario gets its own context instance.
  * You can also pass arbitrary arguments to the
  * context constructor through behat.yml.
  */
 public function __construct()
 {
     $elevator = Elevator::createAtFloor(new Floor(5));
     $this->elevatorController = new ElevatorController($elevator);
 }
示例#2
0
 function it_is_initializable()
 {
     $this->beConstructedWith(Elevator::createAtFloor(new Floor(5)));
     $this->shouldHaveType('Bones\\Building\\Elevator\\Controller');
 }