assertIsString( ErrorCodeFormatter::getStringFromJsonErrorCode( 'Foo' ) ); $contents = json_decode( '{ Foo: Bar }' ); $this->assertIsString( ErrorCodeFormatter::getStringFromJsonErrorCode( json_last_error() ) ); } public function testGetMessageFromJsonErrorCode() { $this->assertIsString( ErrorCodeFormatter::getMessageFromJsonErrorCode( 'Foo' ) ); $contents = json_decode( '{ Foo: Bar }' ); $this->assertIsString( ErrorCodeFormatter::getMessageFromJsonErrorCode( json_last_error() ) ); } }