ValueTest

Extends \PHPUnit\Framework\TestCase

Tests for Value object

package

Kocuj\Di\Tests\ArgumentParser\Value

Methods

Provider for testing parsing value as argument

parseValueProvider() : array

Response

array

Data for testing parsing value as argument

Testing parsing value as argument

testParseValue(mixed $value, mixed $expectedValue) 
dataProvider

parseValueProvider

Arguments

$value

mixed

Value

$expectedValue

mixed

Expected value

Testing wrong argument

testWrongArgument() 
expectedException

\Kocuj\Di\ArgumentParser\Exception