PhpBench\Tests\Unit\Console\Command\UpdateCommandTest::testUpdate PHP Method

testUpdate() public method

It should update the PHAR.
public testUpdate ( )
    public function testUpdate()
    {
        $input = new ArrayInput([], $this->command->getDefinition());
        $this->updater->update()->shouldBeCalled()->willReturn(true);
        $this->updater->getOldVersion()->willReturn('10');
        $this->updater->getNewVersion()->willReturn('20');
        $this->command->execute($input, $this->output);
        $this->assertContains('PHPBench was updated from "10" to "20"', $this->output->fetch());
    }