$configValue, ] ); $requirement = new DynamicConfigRequirement( $config, 'Foo', 'Bar' ); $this->assertEquals( $requirement->isMet(), $configValue ); } /** * @covers ::isMet */ public function testItCastsConfigValue() { $config = new HashConfig( [ 'Foo' => new \stdClass(), ] ); $requirement = new DynamicConfigRequirement( $config, 'Foo', 'Bar' ); $this->assertTrue( $requirement->isMet() ); } /** * @covers ::getName */ public function testItReturnsName() { $requirement = new DynamicConfigRequirement( new HashConfig(), 'Foo', 'Bar' ); $this->assertEquals( 'Bar', $requirement->getName() ); } }