assertInstanceOf( Parameters::class, new Parameters() ); } public function testAddOption() { $instance = new Parameters(); $this->assertFalse( $instance->has( 'Foo' ) ); $instance->set( 'Foo', 42 ); $this->assertEquals( 42, $instance->get( 'Foo' ) ); } public function testUnregisteredKeyThrowsException() { $instance = new Parameters(); $this->expectException( 'InvalidArgumentException' ); $instance->get( 'Foo' ); } }