/** * @test * @group metadata * * @expectedException \OpenConext\Value\Exception\InvalidArgumentException * @dataProvider \OpenConext\Value\TestDataProvider::notStringOrEmptyString * * @param mixed $regexp */ public function the_regexp_scope_factory_method_only_accepts_a_non_empty_string($regexp) { ShibbolethMetadataScope::regexp($regexp); }
/** * @test * @group metadata */ public function a_list_can_be_cast_to_string() { $literal = ShibbolethMetadataScope::literal('foo'); $regexp = ShibbolethMetadataScope::regexp('/a{3,4}/i'); $list = new ShibbolethMetadataScopeList(array($literal, $regexp)); $this->assertStringStartsWith('ShibbolethMetadataScopeList', (string) $list); }