assertInstanceof( ParameterNotFoundException::class, $instance ); $this->assertInstanceof( '\InvalidArgumentException', $instance ); } public function testGetName() { $instance = new ParameterNotFoundException( 'bar' ); $this->assertEquals( 'bar', $instance->getName() ); } }