public function setUp()
 {
     $this->file = tempnam(sys_get_temp_dir(), 'xml');
     $this->cli = $this->prophesize(CLImate::class);
     $this->result = $this->prophesize(Result::class);
     $this->xmlOutput = new XmlOutput($this->cli->reveal(), $this->file);
 }
Esempio n. 2
0
 public function setUp()
 {
     $this->argumentManager = $this->prophesize(Manager::class);
     $this->argumentManager->add(Argument::type('array'))->shouldBeCalled();
     $this->argumentManager->parse(Argument::type('array'))->shouldBeCalled();
     $this->climate = $this->prophesize(CLImate::class);
     $this->climate->arguments = $this->argumentManager->reveal();
     $this->climate->out(Argument::containingString('PHPAssumptions analyser'))->shouldBeCalled()->willReturn($this->climate);
     $this->climate->br()->shouldBeCalled();
     $this->cli = new Cli($this->climate->reveal());
 }