| 1 | <?php |
||
| 18 | class MergeCommandTest extends TestCase |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * setUp |
||
| 22 | */ |
||
| 23 | public function setUp() |
||
| 31 | |||
| 32 | /** |
||
| 33 | * testMerge |
||
| 34 | */ |
||
| 35 | public function testMerge() |
||
| 44 | |||
| 45 | /** |
||
| 46 | * MergeCommand should throw an exception when both --ff-only and --no-ff flags were set. |
||
| 47 | * |
||
| 48 | * @expectedException \Symfony\Component\Process\Exception\InvalidArgumentException |
||
| 49 | */ |
||
| 50 | public function test_exception_when_calling_merge_with_conflicting_ff_arguments() |
||
| 55 | } |
||
| 56 |
Unless you are absolutely sure that the expression can never be null because of other conditions, we strongly recommend to add an additional type check to your code: