public function testAllClassConstantsAreValidTypes() { $reflection = new \ReflectionClass('\\Desk\\Client'); foreach ($reflection->getConstants() as $constant => $constantValue) { $this->assertTrue(Client::isValidType($constantValue), "Desk\\Client::isValidType() returns FALSE for class " . "constant \"{$constant}\", all Desk\\Client class " . "constants should be valid client types"); } }