What you have a photo of, is Oregon Grape.
Oregon-grape grows to 1-5 m tall. Its leathery leaves resemble holly and the stems and twigs have a thickened, corky appearance. The flowers, borne in late spring, are an attractive yellow.
The small purplish-black fruits, which are quite tart and contain large seeds, are sometimes used locally mixed with Salal to make jelly. The fruit is bitter, and generally not eaten without being sweetened first. As the leaves of Oregon-grape are holly-like and resist wilting, the foliage is sometimes used by florists for greenery and a small gathering industry has been established in the Pacific Northwest. The inner bark of the larger stems and roots of Oregon-grape yield a yellow dye.
Oregon-grape is a native plant on the North American west coast from British Columbia to northern California, occurring in the understory of Douglas-fir forests and in brushlands. It is the state flower of Oregon.
In some areas outside its native range, Oregon-grape has been classified as an invasive exotic species that may displace native vegetation.