fail("HTTP Method '{$method}' not recognized."); } else { $this->assertEquals( $method, $enum->value, "The return value of 'Method::{$enum->name}' '{$enum->value}' is not the expected value of '{$method}'." ); } } } }