Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Updated PHPUnit assertions
Browse files Browse the repository at this point in the history
- Used assertInternalType instead of assertType
  • Loading branch information
weierophinney committed Feb 23, 2011
1 parent 3e504fe commit 6ff135c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/GetoptTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ public function testGetoptIgnoreCumulativeParamsByDefault()
array('--colors=red', '--colors=green', '--colors=blue')
);

$this->assertType('string', $opts->colors);
$this->assertInternalType('string', $opts->colors);
$this->assertEquals('blue', $opts->colors, 'Should be equal to last variable');
}

Expand All @@ -545,7 +545,7 @@ public function testGetoptWithCumulativeParamsOptionHandleArrayValues()
array(Getopt::CONFIG_CUMULATIVE_PARAMETERS => true)
);

$this->assertType('array', $opts->colors, 'Colors value should be an array');
$this->assertInternalType('array', $opts->colors, 'Colors value should be an array');
$this->assertEquals('red,green,blue', implode(',', $opts->colors));
}

Expand Down Expand Up @@ -640,4 +640,4 @@ public function testGetoptRaiseExceptionForNumericOptionsIfAneHandlerIsSpecified
$this->setExpectedException('\Zend\Console\Exception\RuntimeException');
$opts->parse();
}
}
}

0 comments on commit 6ff135c

Please sign in to comment.