A class of discontinuous Petrov–Galerkin methods. II. Optimal test functions | Synapse