diff --git a/test/GetoptTest.php b/test/GetoptTest.php index bc5d44e..55a5542 100644 --- a/test/GetoptTest.php +++ b/test/GetoptTest.php @@ -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'); } @@ -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)); } @@ -640,4 +640,4 @@ public function testGetoptRaiseExceptionForNumericOptionsIfAneHandlerIsSpecified $this->setExpectedException('\Zend\Console\Exception\RuntimeException'); $opts->parse(); } -} \ No newline at end of file +}