'joe']; $parameters = [ [ 'user' => [ 'name' => 'User', 'type' => 'text', ], ] ]; $this->assertSame([], $sut->validateInput($input, $parameters)); } public function test2() { $sut = new \ParameterValidator(); $input = ['username' => 'joe']; $parameters = [ [ 'user' => [ 'name' => 'User', 'type' => 'text', ], ] ]; $this->assertNotEmpty($sut->validateInput($input, $parameters)); } }